添加支付完成页面

hmxc
张萌 4 years ago
parent a71d7a7633
commit e10f19ddd1

@ -80,7 +80,7 @@ List<AO> appObjects = [
AO('投诉表扬', R.ASSETS_APPLICATIONS_COMPLAINT_PNG, AO('投诉表扬', R.ASSETS_APPLICATIONS_COMPLAINT_PNG,
() => AdvicePage(type: AdviceType.COMPLAIN)), () => AdvicePage(type: AdviceType.COMPLAIN)),
AO('问卷调查', R.ASSETS_APPLICATIONS_QUESTION_PNG, () => QuestionnairePage()), AO('问卷调查', R.ASSETS_APPLICATIONS_QUESTION_PNG, () => QuestionnairePage()),
AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG, RenovationManagePage()), AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG,()=> RenovationManagePage()),
AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, () => SelectBorrowReturnPage()), AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, () => SelectBorrowReturnPage()),
AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, () => AlarmPage()), AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, () => AlarmPage()),
AO('设施预约', R.ASSETS_ICONS_TOOL_FACILITY_PNG, () => FacilityAppointmentPage()), AO('设施预约', R.ASSETS_ICONS_TOOL_FACILITY_PNG, () => FacilityAppointmentPage()),

@ -1,3 +1,4 @@
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -41,7 +42,8 @@ class _LifePayPageState extends State<LifePayPage> {
double _totalCost = 0; double _totalCost = 0;
int _count = 0; int _count = 0;
bool get allSelect => ((_models.length == _selectYears.length)&&(_models.length!=0)); bool get allSelect =>
((_models.length == _selectYears.length) && (_models.length != 0));
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -313,12 +315,8 @@ class _LifePayPageState extends State<LifePayPage> {
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all( border: Border.all(
width: 1.w, width: 1.w,
color: allSelect color: allSelect ? kPrimaryColor : kDarkSubColor),
? kPrimaryColor color: allSelect ? kPrimaryColor : Colors.transparent,
: kDarkSubColor),
color:allSelect
? kPrimaryColor
: Colors.transparent,
borderRadius: BorderRadius.circular(20.w)), borderRadius: BorderRadius.circular(20.w)),
curve: Curves.easeInOutCubic, curve: Curves.easeInOutCubic,
width: 40.w, width: 40.w,
@ -356,15 +354,17 @@ class _LifePayPageState extends State<LifePayPage> {
], ],
), ),
24.w.widthBox, 24.w.widthBox,
// MaterialButton( MaterialButton(
// elevation: 0, elevation: 0,
// shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.circular(37.w)), borderRadius: BorderRadius.circular(37.w)),
// color: kPrimaryColor, color: kPrimaryColor,
// padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w), padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
// onPressed: () {}, onPressed: () {
// child: '去缴费'.text.black.size(32.sp).bold.make(), Get.off(() => PayFinishPage());
// ), },
child: '去缴费'.text.black.size(32.sp).bold.make(),
),
], ],
), ),
), ),

@ -0,0 +1,50 @@
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_back_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class PayFinishPage extends StatelessWidget {
const PayFinishPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: PreferredSize(
preferredSize: Size.fromHeight(ScreenUtil().statusBarHeight + 88.w),
child: AppBar(
backgroundColor: Color(0xFF2A2A2A),
centerTitle: true,
title: '支付完成'.text.size(32.sp).bold.color(Colors.white).make(),
leading: BeeBackButton(
color: Colors.white,
),
),
),
backgroundColor: Color(0xFF2A2A2A),
body: Center(
child: Column(
children: [
200.w.heightBox,
Container(
width: 200.w,
height: 200.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(100.w),
gradient: LinearGradient(
colors: [Color(0xFFFFE16B), Color(0xFFFFC40D)],
begin: Alignment.topCenter,
end: Alignment.bottomCenter),
),
alignment: Alignment.center,
child: Icon(CupertinoIcons.checkmark_alt,size:150.w ,color: Colors.white,),
),
70.w.heightBox,
'支付成功'.text.size(48.sp).color(Colors.white).bold.make(),
16.w.heightBox,
'Payment successful'.text.size(20.sp).color(Colors.white).make(),
],
),
),
);
}
}

@ -10,31 +10,40 @@ class RenovationManagePage extends StatefulWidget {
_RenovationManagePageState createState() => _RenovationManagePageState(); _RenovationManagePageState createState() => _RenovationManagePageState();
} }
class _RenovationManagePageState extends State<RenovationManagePage> with TickerProviderStateMixin { class _RenovationManagePageState extends State<RenovationManagePage>
List<String> _tabs = [ with TickerProviderStateMixin {
'待处理', List<String> _tabs = ['待处理', '处理中', '已完成', '全部'];
'处理中',
'已完成',
'全部'
];
late TabController _tabController; late TabController _tabController;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
_tabController = TabController(length: _tabs.length, vsync: this); _tabController = TabController(length: _tabs.length, vsync: this);
} }
@override
void dispose() {
_tabController.dispose();
super.dispose();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeScaffold( return BeeScaffold(
title: '装修管理', title: '装修管理',
appBarBottom: BeeTabBar(controller: _tabController, tabs: _tabs,scrollable: true,), appBarBottom: BeeTabBar(
controller: _tabController,
tabs: _tabs,
scrollable: true,
),
body: TabBarView( body: TabBarView(
controller: _tabController, controller: _tabController,
children: List.generate( children: List.generate(
_tabs.length, _tabs.length,
(index) => RenovationManageView(index: index,), (index) => RenovationManageView(
index: index,
),
), ),
), ),
); );
} }
} }

Loading…
Cancel
Save