feat: select school terms and smooth refractive Dock motion
This commit is contained in:
@@ -18,10 +18,12 @@ class ProfilePage extends StatelessWidget {
|
||||
this.authStatus = '未登录',
|
||||
this.onLogout,
|
||||
this.logoutLabel = '退出学校登录',
|
||||
this.onUpdateTerm,
|
||||
});
|
||||
final AppController controller;
|
||||
final VoidCallback onLogin;
|
||||
final VoidCallback? onLogout;
|
||||
final VoidCallback? onUpdateTerm;
|
||||
final String authStatus, logoutLabel;
|
||||
Future<void> _import(BuildContext context) async {
|
||||
try {
|
||||
@@ -190,6 +192,13 @@ class ProfilePage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Divider(height: 1, color: ink.withValues(alpha: 0.06)),
|
||||
_tile(
|
||||
Icons.date_range_rounded,
|
||||
'更新学期',
|
||||
controller.snapshot.schoolTerm?.label ?? '选择学校查询学期',
|
||||
onUpdateTerm ?? onLogin,
|
||||
),
|
||||
Divider(height: 1, color: ink.withValues(alpha: 0.06)),
|
||||
_tile(
|
||||
Icons.file_download_outlined,
|
||||
'从文件导入',
|
||||
|
||||
Reference in New Issue
Block a user