6 changed files with 73 additions and 5 deletions
Unified View
Diff Options
-
BINassets/images/star.png
-
BINassets/images/test_bg.png
-
2lib/generated/assets.dart
-
19lib/pages/home/real_home_page.dart
-
53lib/pages/home/test_page.dart
-
4lib/pages/home/timeline_page.dart
@ -0,0 +1,53 @@ |
|||||
|
import 'package:dating_touchme_app/components/page_appbar.dart'; |
||||
|
import 'package:dating_touchme_app/generated/assets.dart'; |
||||
|
import 'package:flutter/material.dart'; |
||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
||||
|
|
||||
|
class TestPage extends StatelessWidget { |
||||
|
const TestPage({super.key}); |
||||
|
|
||||
|
@override |
||||
|
Widget build(BuildContext context) { |
||||
|
return Stack( |
||||
|
children: [ |
||||
|
Image.asset( |
||||
|
Assets.imagesTestBg, |
||||
|
width: 375.w, |
||||
|
fit: BoxFit.cover, |
||||
|
), |
||||
|
Scaffold( |
||||
|
backgroundColor: Colors.transparent, |
||||
|
appBar: PageAppbar(title: "人格类型测试", color: Colors.white, backgroundColor: Colors.transparent,), |
||||
|
body: Container( |
||||
|
width: 375.w, |
||||
|
padding: EdgeInsets.symmetric( |
||||
|
vertical: 40.w, |
||||
|
horizontal: 12.w |
||||
|
), |
||||
|
child: Column( |
||||
|
children: [ |
||||
|
Container( |
||||
|
width: 350.w, |
||||
|
padding: EdgeInsets.all(30.w), |
||||
|
decoration: BoxDecoration( |
||||
|
borderRadius: BorderRadius.all(Radius.circular(16.w)), |
||||
|
color: const Color.fromRGBO(39, 48, 89, 1) |
||||
|
), |
||||
|
child: Center( |
||||
|
child: Text( |
||||
|
"在陌生环境中,你通常会在陌生环境中,你通常会在陌生环境中,你通常会", |
||||
|
style: TextStyle( |
||||
|
fontSize: 16.w, |
||||
|
color: Colors.white |
||||
|
), |
||||
|
), |
||||
|
), |
||||
|
) |
||||
|
], |
||||
|
), |
||||
|
), |
||||
|
) |
||||
|
], |
||||
|
); |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save