about_page.dart 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:flutter/src/widgets/framework.dart';
  4. import 'package:flutter_screenutil/flutter_screenutil.dart';
  5. import 'package:get/get.dart';
  6. import 'package:get/get_core/src/get_main.dart';
  7. import 'package:location/dialog/agreement_dialog.dart';
  8. import 'package:location/resource/assets.gen.dart';
  9. import 'package:location/utils/app_info_util.dart';
  10. import 'package:location/utils/common_expand.dart';
  11. import '../../base/base_page.dart';
  12. import '../../resource/string.gen.dart';
  13. import '../../router/app_pages.dart';
  14. import '../../widget/common_view.dart';
  15. import 'about_controller.dart';
  16. class AboutPage extends BasePage<AboutController> {
  17. const AboutPage({super.key});
  18. static void start() {
  19. Get.toNamed(RoutePath.about);
  20. }
  21. @override
  22. Widget buildBody(BuildContext context) {
  23. return Column(
  24. crossAxisAlignment: CrossAxisAlignment.center,
  25. children: [
  26. CommonView.buildAppBar(StringName.mineFunAbout,
  27. backOnTap: controller.back, titleCenter: false),
  28. SizedBox(height: 48.w),
  29. Assets.images.iconLogo.image(width: 70.w, height: 70.w),
  30. SizedBox(height: 8.w),
  31. Text(StringName.appName,
  32. style: TextStyle(fontSize: 14.sp, color: Colors.black)),
  33. SizedBox(height: 2.w),
  34. Text('当前版本:${appInfoUtil.appVersionName}',
  35. style: TextStyle(fontSize: 12.sp, color: '#A7A7A7'.color)),
  36. Spacer(),
  37. Row(
  38. mainAxisAlignment: MainAxisAlignment.center,
  39. children: [
  40. GestureDetector(
  41. onTap: () => controller.onPrivacyPolicyClick(),
  42. child: Text(StringName.privacyPolicy,
  43. style: TextStyle(fontSize: 12.sp, color: '#579AFF'.color)),
  44. ),
  45. Text(StringName.loginEtPrivacyAnd,
  46. style: TextStyle(fontSize: 12.sp, color: '#A7A7A7'.color)),
  47. GestureDetector(
  48. onTap: () => controller.onTermOfServiceClick(),
  49. child: Text(StringName.termOfService,
  50. style: TextStyle(fontSize: 12.sp, color: '#579AFF'.color)),
  51. ),
  52. ],
  53. ),
  54. SizedBox(height: 1.w),
  55. Text(StringName.recordNumber,
  56. style: TextStyle(fontSize: 12.sp, color: '#A7A7A7'.color)),
  57. SizedBox(height: 52.w),
  58. ],
  59. );
  60. }
  61. }