Browse Source
Merge branch 'master' of http://git.qniao.cn/dating-agency/dating_touchme_app
Merge branch 'master' of http://git.qniao.cn/dating-agency/dating_touchme_app
* 'master' of http://git.qniao.cn/dating-agency/dating_touchme_app: 增加个人中心的升级红娘按钮,增加升级红娘页面框架ios
4 changed files with 146 additions and 2 deletions
Split View
Diff Options
-
5lib/controller/mine/matchmaker_update_controller.dart
-
3lib/controller/mine/mine_controller.dart
-
2lib/controller/mine/rose_controller.dart
-
138lib/pages/mine/matchmaker_update_page.dart
@ -0,0 +1,5 @@ |
|||
import 'package:get/get.dart'; |
|||
|
|||
class MatchmakerUpdateController extends GetxController { |
|||
final sum = 0.obs; |
|||
} |
|||
@ -0,0 +1,138 @@ |
|||
import 'package:dating_touchme_app/components/page_appbar.dart'; |
|||
import 'package:dating_touchme_app/controller/mine/matchmaker_update_controller.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:get/get.dart'; |
|||
|
|||
class MatchmakerUpdatePage extends StatelessWidget { |
|||
const MatchmakerUpdatePage({super.key}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return GetX<MatchmakerUpdateController>( |
|||
init: MatchmakerUpdateController(), |
|||
builder: (controller){ |
|||
return Scaffold( |
|||
appBar: PageAppbar(title: "升级红娘${controller.sum}"), |
|||
body: SingleChildScrollView( |
|||
child: Container( |
|||
padding: EdgeInsets.symmetric( |
|||
vertical: 20.w, |
|||
horizontal: 15.w |
|||
), |
|||
child: Column( |
|||
children: [ |
|||
Container( |
|||
padding: EdgeInsets.all(10.w), |
|||
margin: EdgeInsets.only(bottom: 20.w), |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|||
border: Border.all(width: 1, color: const Color.fromRGBO(51, 51, 51, 1)) |
|||
), |
|||
child: Column( |
|||
children: [ |
|||
Text( |
|||
"趣恋恋,让婚恋服务更高效", |
|||
style: TextStyle( |
|||
fontSize: 16.w |
|||
), |
|||
), |
|||
Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|||
children: [ |
|||
Container( |
|||
width: 90.w, |
|||
height: 120.w, |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|||
border: Border.all(width: 1, color: Colors.black) |
|||
), |
|||
), |
|||
Container( |
|||
width: 90.w, |
|||
height: 120.w, |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|||
border: Border.all(width: 1, color: Colors.black) |
|||
), |
|||
), |
|||
Container( |
|||
width: 90.w, |
|||
height: 120.w, |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|||
border: Border.all(width: 1, color: Colors.black) |
|||
), |
|||
), |
|||
], |
|||
) |
|||
], |
|||
), |
|||
), |
|||
Container( |
|||
width: 345.w, |
|||
margin: EdgeInsets.only(bottom: 20.w), |
|||
padding: EdgeInsets.all(10.w), |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|||
border: Border.all(width: 1, color: const Color.fromRGBO(51, 51, 51, 1)) |
|||
), |
|||
child: Column( |
|||
children: [ |
|||
Text( |
|||
"趣恋恋,让婚恋服务更高效", |
|||
style: TextStyle( |
|||
fontSize: 16.w |
|||
), |
|||
), |
|||
Text( |
|||
"趣恋恋,让婚恋服务更高效", |
|||
style: TextStyle( |
|||
fontSize: 16.w |
|||
), |
|||
), |
|||
Text( |
|||
"趣恋恋,让婚恋服务更高效", |
|||
style: TextStyle( |
|||
fontSize: 16.w |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
Container( |
|||
width: 325.w, |
|||
height: 45.w, |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.all(Radius.circular(45.w)), |
|||
gradient: LinearGradient( |
|||
begin: Alignment.centerLeft, // 0%:左边开始 |
|||
end: Alignment.centerRight, // 100%:右边结束 |
|||
colors: [ |
|||
Color.fromRGBO(131, 89, 255, 1), // 紫色 |
|||
Color.fromRGBO(77, 127, 231, 1), // 中间淡蓝 |
|||
Color.fromRGBO(61, 138, 224, 1), // 右侧深蓝 |
|||
], |
|||
stops: [0.0, 0.7753, 1.0], // 对应 CSS 百分比:0%、77.53%、100% |
|||
), |
|||
), |
|||
child: Center( |
|||
child: Text( |
|||
"确认", |
|||
style: TextStyle( |
|||
fontSize: 18.w, |
|||
color: Colors.white, |
|||
fontWeight: FontWeight.w500 |
|||
), |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
), |
|||
); |
|||
}, |
|||
); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save