Add feedback service, reminder diagnostics and smooth week transitions
This commit is contained in:
@@ -6,7 +6,10 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../app/app_controller.dart';
|
||||
import '../../app/app_theme.dart';
|
||||
import '../../app/app_version.dart';
|
||||
import '../../data/schedule_file_import.dart';
|
||||
import '../feedback/feedback_page.dart';
|
||||
import '../feedback/feedback_submission.dart';
|
||||
import 'settings_page.dart';
|
||||
import 'import_preview.dart';
|
||||
|
||||
@@ -19,12 +22,14 @@ class ProfilePage extends StatelessWidget {
|
||||
this.onLogout,
|
||||
this.logoutLabel = '退出学校登录',
|
||||
this.onUpdateTerm,
|
||||
this.feedbackSender = const UnconfiguredFeedbackSender(),
|
||||
});
|
||||
final AppController controller;
|
||||
final VoidCallback onLogin;
|
||||
final VoidCallback? onLogout;
|
||||
final VoidCallback? onUpdateTerm;
|
||||
final String authStatus, logoutLabel;
|
||||
final FeedbackSender feedbackSender;
|
||||
Future<void> _import(BuildContext context) async {
|
||||
try {
|
||||
final file = await FilePicker.pickFile(
|
||||
@@ -212,6 +217,18 @@ class ProfilePage extends StatelessWidget {
|
||||
'无需登录,预览课表样式',
|
||||
controller.showDemo,
|
||||
),
|
||||
Divider(height: 1, color: ink.withValues(alpha: 0.06)),
|
||||
_tile(
|
||||
Icons.chat_bubble_outline_rounded,
|
||||
'反馈与共建',
|
||||
'反馈问题和建议 · 我要参与开发',
|
||||
() => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute<void>(
|
||||
builder: (_) => FeedbackPage(sender: feedbackSender),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -224,6 +241,14 @@ class ProfilePage extends StatelessWidget {
|
||||
style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
'版本 $appVersion',
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: ink.withValues(alpha: 0.45),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
'今天也有值得期待的小事。',
|
||||
style: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user