WallPaper_FSX_Flutter/lib/modules/about/about_view.dart
fengshengxiong 9caadfb09a 1.按照UI图修改
2.完善其他功能
2024-05-17 17:02:22 +08:00

58 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:now_wallpaper/common/components/navigation_bar/base_appbar.dart';
import 'package:now_wallpaper/generated/assets.dart';
import 'package:now_wallpaper/modules/about/about_controller.dart';
import 'package:now_wallpaper/res/values/strings.dart';
class AboutView extends GetView<AboutController> {
const AboutView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: const BaseAppBar('About'),
body: Container(
alignment: Alignment.topCenter,
child: Column(
children: [
SizedBox(height: 60.h),
Image.asset(
Assets.iconIconApp,
width: 110.w,
height: 110.w,
),
SizedBox(height: 20.h),
Obx(() {
return RichText(
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
text: TextSpan(
text: appName,
style: TextStyle(
color: Colors.white,
fontSize: 22.sp,
fontWeight: FontWeight.w600,
),
children: [
TextSpan(
text: '\n${controller.versionName.value}',
style: TextStyle(
color: Colors.white,
fontSize: 12.sp,
fontWeight: FontWeight.w600,
),
),
],
),
);
}),
],
),
),
);
}
}