Skip to content

Commit

Permalink
fix:改进个人设置中的按钮,更多设置中添加注意事项
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanotsu committed Jul 13, 2024
1 parent 3b6ff09 commit bd3d640
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 11 deletions.
3 changes: 2 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@
"apiErrorHint":"The HTTP API reports an error, please check the network or try again later!",
"noStorageHint":"File management permissions have not been granted, and some features may be affected.",
"permissionRequest":"Permission Request",
"featuresRestrictionNote":"The features of display images, import exercise, import food composition, and data backup in the application require file management permissions. Please allow them."
"featuresRestrictionNote":"The features of display images, import exercise, import food composition, and data backup in the application require file management permissions. Please allow them.",

"appNote":"Note"

}
4 changes: 3 additions & 1 deletion lib/l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@
"apiErrorHint":"接口报错,请检查网络或稍后重试",
"noStorageHint":"未授予文件管理权限,部分功能可能将会受到影响。",
"permissionRequest":"权限申请",
"featuresRestrictionNote":"应用中显示图片、基础动作导入、营养成分导入、数据备份等功能需要文件管理权限,请允许。"
"featuresRestrictionNote":"应用中显示图片、基础动作导入、营养成分导入、数据备份等功能需要文件管理权限,请允许。",

"appNote":"注意事项"


}
18 changes: 9 additions & 9 deletions lib/views/me/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -580,15 +580,15 @@ class NewCusSettingCard extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Container(
height: 150.sp,
padding: EdgeInsets.all(2.sp),
child: Center(
child: Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.sp),
),
return Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.sp),
),
child: Container(
height: 150.sp,
padding: EdgeInsets.all(2.sp),
child: Center(
child: ListTile(
leading: Icon(leadingIcon),
title: Text(
Expand Down
39 changes: 39 additions & 0 deletions lib/views/me/more_settings/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,45 @@ class _MoreSettingsState extends State<MoreSettings> {
),
],
),

ListTile(
title: Text(CusAL.of(context).appNote),
trailing: const Icon(Icons.info_outlined),
onTap: () {
showAboutDialog(
context: context,
applicationName: 'Free Fitness',
children: [
const Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(flex: 1, child: Text("Author")),
Expanded(flex: 3, child: Text("SanotSu")),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
const Expanded(flex: 1, child: Text("Email")),
Expanded(
flex: 3,
child: Text(
"[email protected]",
style: TextStyle(fontSize: 13.sp),
),
),
],
),
SizedBox(height: 20.sp),
Text(
"Not for commercial use.",
style: TextStyle(fontSize: 20.sp, color: Colors.blue),
),
],
);
},
),

// SizedBox(height: 10.sp),
// ListTile(
// leading: const Icon(Icons.description),
Expand Down

0 comments on commit bd3d640

Please sign in to comment.