|
|
@ -1,18 +1,24 @@
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/const/resource.dart';
|
|
|
|
import 'package:aku_community/const/resource.dart';
|
|
|
|
import 'package:aku_community/constants/application_objects.dart';
|
|
|
|
import 'package:aku_community/constants/application_objects.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/pages/life_pay/life_pay_choose_page.dart';
|
|
|
|
import 'package:aku_community/pages/message_center_page/message_center_page.dart';
|
|
|
|
import 'package:aku_community/pages/message_center_page/message_center_page.dart';
|
|
|
|
import 'package:aku_community/pages/personal/user_profile_page.dart';
|
|
|
|
import 'package:aku_community/pages/personal/user_profile_page.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/pages/property/property_func.dart';
|
|
|
|
import 'package:aku_community/pages/sign/sign_in_page.dart';
|
|
|
|
import 'package:aku_community/pages/sign/sign_in_page.dart';
|
|
|
|
import 'package:aku_community/painters/user_bottom_bar_painter.dart';
|
|
|
|
import 'package:aku_community/painters/user_bottom_bar_painter.dart';
|
|
|
|
import 'package:aku_community/provider/app_provider.dart';
|
|
|
|
import 'package:aku_community/provider/app_provider.dart';
|
|
|
|
import 'package:aku_community/provider/user_provider.dart';
|
|
|
|
import 'package:aku_community/provider/user_provider.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/ui/profile/house/add_house_page.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/ui/profile/house/house_owners_page.dart';
|
|
|
|
import 'package:aku_community/ui/profile/order/order_page.dart';
|
|
|
|
import 'package:aku_community/ui/profile/order/order_page.dart';
|
|
|
|
import 'package:aku_community/ui/search/bee_search.dart';
|
|
|
|
import 'package:aku_community/ui/search/bee_search.dart';
|
|
|
|
import 'package:aku_community/utils/headers.dart';
|
|
|
|
import 'package:aku_community/utils/headers.dart';
|
|
|
|
import 'package:aku_community/utils/login_util.dart';
|
|
|
|
import 'package:aku_community/utils/login_util.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/widget/others/user_tool.dart';
|
|
|
|
import 'package:aku_community/widget/views/application_view.dart';
|
|
|
|
import 'package:aku_community/widget/views/application_view.dart';
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
@ -20,7 +26,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PropertyPage extends StatefulWidget {
|
|
|
|
class PropertyPage extends StatefulWidget {
|
|
|
|
final bool? isSign;
|
|
|
|
final bool? isSign;
|
|
|
|
|
|
|
|
|
|
|
@ -35,15 +40,15 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
int sum = 0;
|
|
|
|
int sum = 0;
|
|
|
|
int commentCount = 0;
|
|
|
|
int commentCount = 0;
|
|
|
|
int sysCount = 0;
|
|
|
|
int sysCount = 0;
|
|
|
|
|
|
|
|
num unpaid = 0;
|
|
|
|
|
|
|
|
num paid = 0;
|
|
|
|
late TabController _tabController;
|
|
|
|
late TabController _tabController;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
_getRefresh();
|
|
|
|
_tabController = TabController(
|
|
|
|
_tabController = TabController(initialIndex: 0, length: 2, vsync: this);
|
|
|
|
initialIndex: 0, length: 2, vsync: this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -52,6 +57,14 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getRefresh(){
|
|
|
|
|
|
|
|
Future.delayed(Duration(milliseconds: 0), () async {
|
|
|
|
|
|
|
|
paid = await PropertyFunc.getDailyPaymentPrePay();
|
|
|
|
|
|
|
|
unpaid = await PropertyFunc.getFindUnpaidAmount();
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SliverAppBar _sliverAppBar(double height) {
|
|
|
|
SliverAppBar _sliverAppBar(double height) {
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
AppProvider appProvider = Provider.of<AppProvider>(context);
|
|
|
|
AppProvider appProvider = Provider.of<AppProvider>(context);
|
|
|
@ -63,7 +76,7 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
snap: false,
|
|
|
|
snap: false,
|
|
|
|
//toolbarHeight: 0,
|
|
|
|
//toolbarHeight: 0,
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
collapsedHeight:420.w,
|
|
|
|
collapsedHeight: 420.w,
|
|
|
|
titleSpacing: 10.0,
|
|
|
|
titleSpacing: 10.0,
|
|
|
|
floating: true,
|
|
|
|
floating: true,
|
|
|
|
title: Row(
|
|
|
|
title: Row(
|
|
|
@ -72,19 +85,21 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
if (appProvider.location != null)
|
|
|
|
if (appProvider.location != null)
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(right: 5),
|
|
|
|
padding: EdgeInsets.only(right: 5),
|
|
|
|
child: Image.asset(
|
|
|
|
child: Image.asset(
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_LOCATION_PNG,
|
|
|
|
R.ASSETS_ICONS_ICON_PROPERTY_LOCATION_PNG,
|
|
|
|
width: 32.w,
|
|
|
|
width: 40.w,
|
|
|
|
height: 32.w,
|
|
|
|
height: 40.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
appProvider.location?['city']==null?'':appProvider.location?['city'] as String? ?? '',
|
|
|
|
appProvider.location?['city'] == null
|
|
|
|
|
|
|
|
? ''
|
|
|
|
|
|
|
|
: appProvider.location?['city'] as String? ?? '',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 24.sp,
|
|
|
|
fontSize: 32.sp,
|
|
|
|
color: Color(0xff333333),
|
|
|
|
color: Colors.white.withOpacity(0.85),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -94,11 +109,11 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Get.to(() => BeeSearch());
|
|
|
|
Get.to(() => BeeSearch());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_FIND_PNG,
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_PROPERTY_SEARCH_PNG,
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(right: 10.w, left: 12.w),
|
|
|
|
padding: EdgeInsets.only(right: 10.w, left: 12.w),
|
|
|
|
child: Badge(
|
|
|
|
child: Badge(
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
badgeColor: Color(0xFFCF2525),
|
|
|
|
badgeColor: Color(0xFFCF2525),
|
|
|
@ -118,7 +133,7 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
Get.to(() => MessageCenterPage());
|
|
|
|
Get.to(() => MessageCenterPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_MESSAGE_PNG,
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_PROPERTY_MESSAGE_PNG,
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -128,84 +143,86 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
flexibleSpace: Stack(
|
|
|
|
flexibleSpace: Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
child: Container(
|
|
|
|
child: Image.asset(
|
|
|
|
color: Color(0xF9D57A59),
|
|
|
|
R.ASSETS_IMAGES_PROPERTY_BG_PNG,
|
|
|
|
height: 503.w,
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: 503.w,
|
|
|
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Image(
|
|
|
|
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
|
|
|
|
// image: NetworkImage(
|
|
|
|
|
|
|
|
// "https://images.pexels.com/photos/62389/pexels-photo-62389.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260",
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
top: 0,
|
|
|
|
top: 0,
|
|
|
|
left: 0,
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
right: 0,
|
|
|
|
bottom: 0),
|
|
|
|
bottom: 0),
|
|
|
|
// Positioned(
|
|
|
|
|
|
|
|
// child: Container(
|
|
|
|
|
|
|
|
// height: 30,
|
|
|
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
|
|
|
// borderRadius: BorderRadius.vertical(
|
|
|
|
|
|
|
|
// top: Radius.circular(50),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// bottom: -1,
|
|
|
|
|
|
|
|
// left: 0,
|
|
|
|
|
|
|
|
// right: 0,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(left: 32.w,right: 32.w),
|
|
|
|
margin: EdgeInsets.only(left: 32.w, right: 32.w),
|
|
|
|
width: 686.w,
|
|
|
|
width: 686.w,
|
|
|
|
height: 74.w,
|
|
|
|
height: 74.w,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.black.withOpacity(0.25),
|
|
|
|
color: Colors.black.withOpacity(0.25),
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(8.w),
|
|
|
|
Radius.circular(8.w),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
),
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
24.wb,
|
|
|
|
children: [
|
|
|
|
Text('当前绑定房屋',style: TextStyle(fontSize: 28.sp,color: Colors.white.withOpacity(0.85),height: 1.00),),
|
|
|
|
24.wb,
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
Text('B栋2单元1803室',style: TextStyle(fontSize: 28.sp,color: Colors.white.withOpacity(0.85),height:1.00,fontWeight: FontWeight.bold),),
|
|
|
|
'当前绑定房屋',
|
|
|
|
32.wb,
|
|
|
|
style: TextStyle(
|
|
|
|
GestureDetector(
|
|
|
|
fontSize: 28.sp,
|
|
|
|
onTap: (){
|
|
|
|
color: Colors.white.withOpacity(0.85),
|
|
|
|
|
|
|
|
height: 1.00),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
child: Container(
|
|
|
|
Spacer(),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
Text(
|
|
|
|
width: 80.w,
|
|
|
|
userProvider.userDetailModel!.estateNames!.isEmpty?'暂未绑定': userProvider.userDetailModel!.estateNames?[0]??'暂未绑定',
|
|
|
|
height: 42.w,
|
|
|
|
style: TextStyle(
|
|
|
|
child:Text('切换',style: TextStyle(fontSize: 24.sp,color: Colors.white.withOpacity(0.85)),),
|
|
|
|
fontSize: 28.sp,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white.withOpacity(0.85),
|
|
|
|
color: Color(0xFF3D8CE8),
|
|
|
|
height: 1.00,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
Radius.circular(8.w),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
32.wb,
|
|
|
|
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Get.to(HouseOwnersPage(
|
|
|
|
|
|
|
|
identify: UserTool.userProvider.userDetailModel!.type ?? 4,
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
|
|
|
width: 80.w,
|
|
|
|
|
|
|
|
height: 42.w,
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
'切换',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 24.sp,
|
|
|
|
|
|
|
|
color: Colors.white.withOpacity(0.85)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Color(0xFF3D8CE8),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(8.w),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
24.wb,
|
|
|
|
),
|
|
|
|
|
|
|
|
24.wb,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
top: kTextTabBarHeight+50.w,
|
|
|
|
),
|
|
|
|
left: 0,
|
|
|
|
top: kTextTabBarHeight + 50.w,
|
|
|
|
right: 0,
|
|
|
|
left: 0,
|
|
|
|
),
|
|
|
|
right: 0,
|
|
|
|
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
child: _goodsTitle(),
|
|
|
|
child: _goodsTitle(),
|
|
|
|
top: kTextTabBarHeight+50.w+94.w,
|
|
|
|
top: kTextTabBarHeight + 50.w + 94.w,
|
|
|
|
left: 0,
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
right: 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -213,28 +230,24 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(top: 20.w),
|
|
|
|
padding: EdgeInsets.only(top: 20.w),
|
|
|
|
height: 150.w,
|
|
|
|
height: 150.w,
|
|
|
|
|
|
|
|
|
|
|
|
child: TabBarView(
|
|
|
|
child: TabBarView(
|
|
|
|
children: [_payView(true),_payView(false)],
|
|
|
|
children: [_payView(true), _payView(false)],
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
top: kTextTabBarHeight+50.w+94.w+60.w,
|
|
|
|
top: kTextTabBarHeight + 50.w + 94.w + 60.w,
|
|
|
|
left: 0,
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
right: 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_payView(bool pay) {
|
|
|
|
_payView(bool pay){
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.only(left: 36.w,right: 36.w),
|
|
|
|
padding: EdgeInsets.only(left: 36.w, right: 36.w),
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 150.w,
|
|
|
|
height: 150.w,
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
@ -245,7 +258,7 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'1,944.00',
|
|
|
|
pay?paid.toStringAsFixed(2):unpaid.toStringAsFixed(2),
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xFFFFFFFF).withOpacity(0.85),
|
|
|
|
color: Color(0xFFFFFFFF).withOpacity(0.85),
|
|
|
|
fontSize: 40.sp,
|
|
|
|
fontSize: 40.sp,
|
|
|
@ -262,15 +275,34 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
GestureDetector(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
onTap: () async{
|
|
|
|
width: 160.w,
|
|
|
|
final appProvider = Provider.of<AppProvider>(Get.context!, listen: false);
|
|
|
|
height: 55.w,
|
|
|
|
if (appProvider.selectedHouse == null) {
|
|
|
|
child:Text(!pay?'一键缴费':'点击充值',style: TextStyle(fontSize: 24.sp,color: Colors.white.withOpacity(0.85)),),
|
|
|
|
BotToast.showText(text: '请先添加房屋');
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
Get.to(() => AddHousePage());
|
|
|
|
color: Color(0xFFFFB634),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
}else{
|
|
|
|
Radius.circular(8.w),
|
|
|
|
bool? result = await Get.to(() => LifePayChoosePage());
|
|
|
|
|
|
|
|
if (result == true) _getRefresh();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
|
|
|
width: 160.w,
|
|
|
|
|
|
|
|
height: 55.w,
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
!pay ? '缴纳账单' : '点击充值',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 24.sp, color: Colors.white.withOpacity(0.85)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Color(0xFFFFC257),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(8.w),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -279,68 +311,64 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_goodsTitle(){
|
|
|
|
_goodsTitle() {
|
|
|
|
return Row(
|
|
|
|
return Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
24.wb,
|
|
|
|
24.wb,
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: 60.w,
|
|
|
|
height: 60.w,
|
|
|
|
child: Material(
|
|
|
|
child: Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
|
|
|
child: TabBar(
|
|
|
|
|
|
|
|
onTap: (index) {
|
|
|
|
|
|
|
|
// _presenter.fetchList(_category.id, 0, _sortType);
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
isScrollable: true,
|
|
|
|
|
|
|
|
labelPadding: EdgeInsets.zero,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
|
|
|
labelColor: Colors.white.withOpacity(0.85),
|
|
|
|
|
|
|
|
unselectedLabelColor: Colors.white.withOpacity(0.65),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
indicatorPadding: EdgeInsets.symmetric(horizontal: 40.w),
|
|
|
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
labelStyle: TextStyle(color:Colors.white.withOpacity(0.85),),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
indicatorColor: Color(0xFFE8A93A),
|
|
|
|
|
|
|
|
tabs: _tabItems()),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Row(
|
|
|
|
child: TabBar(
|
|
|
|
children: [
|
|
|
|
onTap: (index) {
|
|
|
|
Text(
|
|
|
|
// _presenter.fetchList(_category.id, 0, _sortType);
|
|
|
|
'缴费记录',
|
|
|
|
setState(() {});
|
|
|
|
style: TextStyle(
|
|
|
|
},
|
|
|
|
color: Colors.white.withOpacity(0.45),
|
|
|
|
isScrollable: true,
|
|
|
|
fontSize: 24.sp,
|
|
|
|
labelPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
controller: _tabController,
|
|
|
|
|
|
|
|
labelColor: Colors.white.withOpacity(0.85),
|
|
|
|
|
|
|
|
unselectedLabelColor: Colors.white.withOpacity(0.65),
|
|
|
|
|
|
|
|
indicatorPadding: EdgeInsets.symmetric(horizontal: 40.w),
|
|
|
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.label,
|
|
|
|
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
|
|
|
|
color: Colors.white.withOpacity(0.85),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.wb,
|
|
|
|
indicatorColor: Color(0xFFE8A93A),
|
|
|
|
Icon(
|
|
|
|
tabs: _tabItems()),
|
|
|
|
CupertinoIcons.chevron_forward,
|
|
|
|
),
|
|
|
|
size: 24.w,
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'缴费记录',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.white.withOpacity(0.45),
|
|
|
|
color: Colors.white.withOpacity(0.45),
|
|
|
|
|
|
|
|
fontSize: 24.sp,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.wb,
|
|
|
|
|
|
|
|
Icon(
|
|
|
|
|
|
|
|
CupertinoIcons.chevron_forward,
|
|
|
|
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.white.withOpacity(0.45),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
36.wb,
|
|
|
|
36.wb,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<Widget> _tabItems() {
|
|
|
|
List<Widget> _tabItems() {
|
|
|
|
return [_tabItem(0,'未缴账单'),_tabItem(1,'预缴金额')];
|
|
|
|
return [_tabItem(0, '未缴账单'), _tabItem(1, '预缴金额')];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_tabItem(int index,String text) {
|
|
|
|
_tabItem(int index, String text) {
|
|
|
|
bool isChoose = index == _tabController.index;
|
|
|
|
bool isChoose = index == _tabController.index;
|
|
|
|
// Color textColor = index == _tabController.index
|
|
|
|
// Color textColor = index == _tabController.index
|
|
|
|
// ? getCurrentThemeColor()
|
|
|
|
// ? getCurrentThemeColor()
|
|
|
@ -359,9 +387,11 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
text,
|
|
|
|
text,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: isChoose?FontWeight.bold:FontWeight.normal,
|
|
|
|
fontWeight: isChoose ? FontWeight.bold : FontWeight.normal,
|
|
|
|
fontSize: isChoose?32.sp:28.sp,
|
|
|
|
fontSize: isChoose ? 32.sp : 28.sp,
|
|
|
|
color: isChoose?Colors.white.withOpacity(0.85):Colors.white.withOpacity(0.65)),
|
|
|
|
color: isChoose
|
|
|
|
|
|
|
|
? Colors.white.withOpacity(0.85)
|
|
|
|
|
|
|
|
: Colors.white.withOpacity(0.65)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -456,7 +486,6 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
|
|
|
|
|
|
|
|
body: EasyRefresh(
|
|
|
|
body: EasyRefresh(
|
|
|
|
header: MaterialHeader(),
|
|
|
|
header: MaterialHeader(),
|
|
|
|
onRefresh: () async {
|
|
|
|
onRefresh: () async {
|
|
|
@ -469,16 +498,19 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
|
|
|
|
|
|
|
|
// orderWidget,
|
|
|
|
// orderWidget,
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: _getFunctionView(getOutApp,'出行安全',Color(0xFFFAC058)),
|
|
|
|
child: _getFunctionView(getOutApp, '出行安全', Color(0xFFFAC058)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: _getFunctionView(propertyServicesApp,'物业服务',Color(0xFF58FA8F)),
|
|
|
|
child: _getFunctionView(
|
|
|
|
|
|
|
|
propertyServicesApp, '物业服务', Color(0xFF58FA8F)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: _getFunctionView(residentLifeApp,'居民生活',Color(0xFF58C0FA)),
|
|
|
|
child:
|
|
|
|
|
|
|
|
_getFunctionView(residentLifeApp, '居民生活', Color(0xFF58C0FA)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: _getFunctionView(aboutCommunityApp,'关于社区',Color(0xFFFA5858)),
|
|
|
|
child: _getFunctionView(
|
|
|
|
|
|
|
|
aboutCommunityApp, '关于社区', Color(0xFFFA5858)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -486,9 +518,9 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_getFunctionView(List<AO> item,String title,Color color){
|
|
|
|
_getFunctionView(List<AO> item, String title, Color color) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.only(left: 32.w,right: 32.w,top: 32.w),
|
|
|
|
margin: EdgeInsets.only(left: 32.w, right: 32.w, top: 32.w),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color(0xffffffff),
|
|
|
|
color: Color(0xffffffff),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8)),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8)),
|
|
|
@ -500,7 +532,7 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
//margin: EdgeInsets.all(20.w),
|
|
|
|
//margin: EdgeInsets.all(20.w),
|
|
|
|
padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 24.w),
|
|
|
|
padding: EdgeInsets.only(left: 32.w, right: 32.w, top: 24.w),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -511,7 +543,6 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
//crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
//crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 6.w),
|
|
|
|
margin: EdgeInsets.only(top: 6.w),
|
|
|
|
width: 4.w,
|
|
|
|
width: 4.w,
|
|
|
@ -529,26 +560,22 @@ class _PropertyPageState extends State<PropertyPage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_getTitle(String title){
|
|
|
|
_getTitle(String title) {
|
|
|
|
return Text(
|
|
|
|
return Text(
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
color: ktextPrimary,
|
|
|
|
color: ktextPrimary,
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
bool get wantKeepAlive => true;
|
|
|
|
bool get wantKeepAlive => true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|