update base style

rewrite fixed submit page
add bee map tool
hmxc
张萌 4 years ago
parent 8e5b2f2fcb
commit 95f3e0e0b9

@ -2,6 +2,12 @@ import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/screenutil.dart'; import 'package:akuCommunity/utils/screenutil.dart';
const ktextPrimary = Color(0xff333333);
const ktextSubColor = Color(0xff666666);
const kForeGroundColor = Color(0xFFFFFFFF);
const kPrimaryColor=Color(0xFFFFC40C);
const kDarkPrimaryColor=Color(0xFFFF8200);
class BaseStyle { class BaseStyle {
/// ///
static final double fontSize18 = 18.sp; static final double fontSize18 = 18.sp;
@ -25,8 +31,8 @@ class BaseStyle {
static final double fontSize38 = 38.sp; static final double fontSize38 = 38.sp;
static final double fontSize52 = 52.sp; static final double fontSize52 = 52.sp;
/// ///
static final Color color333333 = Color(0xff333333);
static final Color color666666 = Color(0xff666666); static final Color color666666 = Color(0xff666666);

@ -193,7 +193,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
post, post,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 10.w), SizedBox(height: 10.w),
@ -201,7 +201,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
name, name,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -244,7 +244,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
'已有${320}人参加', '已有${320}人参加',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
Icon( Icon(
@ -288,7 +288,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
widget.bundle.getMap('details')['title'], widget.bundle.getMap('details')['title'],
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600), fontWeight: FontWeight.w600),
), ),
Container( Container(

@ -130,7 +130,7 @@ class _MemberListPageState extends State<MemberListPage> {
name, name,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -140,7 +140,7 @@ class _MemberListPageState extends State<MemberListPage> {
(Match m) => "${m[1]}****${m[2]}"), (Match m) => "${m[1]}****${m[2]}"),
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],

@ -104,7 +104,7 @@ class _CommonPageState extends State<CommonPage> {
// '点击“呼叫110”后,您可以直接拨打本地110。页面中提供了您当前所在位置,以便您与警方沟通。(GPS信号弱时位置可能存在偏移)', // '点击“呼叫110”后,您可以直接拨打本地110。页面中提供了您当前所在位置,以便您与警方沟通。(GPS信号弱时位置可能存在偏移)',
// style: TextStyle( // style: TextStyle(
// fontSize: BaseStyle.fontSize28, // fontSize: BaseStyle.fontSize28,
// color: BaseStyle.color666666, // color: ktextSubColor,
// ), // ),
// ), // ),
// actions: [ // actions: [

@ -50,7 +50,7 @@ class ConfirmBottomBar extends StatelessWidget {
'提交订单', '提交订单',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize30, fontSize: BaseStyle.fontSize30,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -53,7 +53,7 @@ class _DirectorManageState extends State<DirectorManage> {
text: '2', text: '2',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize36, fontSize: BaseStyle.fontSize36,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@ -61,7 +61,7 @@ class _DirectorManageState extends State<DirectorManage> {
text: '', text: '',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@ -173,7 +173,7 @@ class _DirectorManageState extends State<DirectorManage> {
'确认提交', '确认提交',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@ -224,7 +224,7 @@ class _DirectorManageState extends State<DirectorManage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
Column( Column(
children: children:

@ -93,7 +93,7 @@ class _OwnerManageState extends State<OwnerManage>
_listWidget[index]['title'], _listWidget[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
SizedBox(height: 25.w), SizedBox(height: 25.w),
_listWidget[index]['widget'], _listWidget[index]['widget'],

@ -86,7 +86,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
'选择付款方式', '选择付款方式',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@ -148,7 +148,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
_listPay[index]['isCheck'] _listPay[index]['isCheck']
? Icon( ? Icon(
@ -190,7 +190,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
_listPay[_currentindex]['title'], _listPay[_currentindex]['title'],
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
], ],
), ),
@ -230,7 +230,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
'付款详情', '付款详情',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),

@ -160,7 +160,7 @@ class _ViewCommentsPageState extends State<ViewCommentsPage> {
item['title'], item['title'],
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -57,7 +57,7 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
name, name,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 4.w), SizedBox(height: 4.w),
@ -92,7 +92,7 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
maxLines: 3, maxLines: 3,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
expand: false, expand: false,
), ),
@ -122,14 +122,14 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
Icon( Icon(
Feather.triangle, Feather.triangle,
size: BaseStyle.fontSize22, size: BaseStyle.fontSize22,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
SizedBox(width: 10.w), SizedBox(width: 10.w),
Text( Text(
'有用', '有用',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize22, fontSize: BaseStyle.fontSize22,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],

@ -33,7 +33,7 @@ class _CommonRadioState extends State<CommonRadio> {
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
], ],
), ),

@ -26,7 +26,7 @@ class BillCard extends StatelessWidget {
title, title,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
), ),
Text( Text(
@ -34,7 +34,7 @@ class BillCard extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],

@ -28,14 +28,14 @@ class _DetailsCardState extends State<DetailsCard> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize30, fontSize: BaseStyle.fontSize30,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
Text( Text(
'宁波华茂悦峰 1幢-1单元-702室', '宁波华茂悦峰 1幢-1单元-702室',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize30, fontSize: BaseStyle.fontSize30,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -63,7 +63,7 @@ class _DetailsCardState extends State<DetailsCard> {
'2019上半年', '2019上半年',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],

@ -15,7 +15,7 @@ class RecordCard extends StatelessWidget {
'titleStyle': TextStyle( 'titleStyle': TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize30, fontSize: BaseStyle.fontSize30,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
'valueStyle': TextStyle( 'valueStyle': TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
@ -29,7 +29,7 @@ class RecordCard extends StatelessWidget {
'value': '- ¥1000.00', 'value': '- ¥1000.00',
'titleStyle': TextStyle( 'titleStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
'valueStyle': TextStyle( 'valueStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
@ -43,11 +43,11 @@ class RecordCard extends StatelessWidget {
'value': '2020/08/01 10:00', 'value': '2020/08/01 10:00',
'titleStyle': TextStyle( 'titleStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
'valueStyle': TextStyle( 'valueStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
'top': 30, 'top': 30,
'isShow': false, 'isShow': false,
@ -57,11 +57,11 @@ class RecordCard extends StatelessWidget {
'value': '支付宝', 'value': '支付宝',
'titleStyle': TextStyle( 'titleStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
'valueStyle': TextStyle( 'valueStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
'top': 30, 'top': 30,
'isShow': false, 'isShow': false,
@ -71,11 +71,11 @@ class RecordCard extends StatelessWidget {
'value': '2020080100030001433244', 'value': '2020080100030001433244',
'titleStyle': TextStyle( 'titleStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
'valueStyle': TextStyle( 'valueStyle': TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
'top': 30, 'top': 30,
'isShow': false, 'isShow': false,

@ -27,7 +27,7 @@ class _OrderCardState extends State<OrderCard> {
'去年2019年', '去年2019年',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color666666, color: ktextSubColor,
), ),
), ),
Container( Container(
@ -38,7 +38,7 @@ class _OrderCardState extends State<OrderCard> {
'待缴4项', '待缴4项',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(width: 40.w), SizedBox(width: 40.w),
@ -46,7 +46,7 @@ class _OrderCardState extends State<OrderCard> {
'已选4项', '已选4项',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -60,7 +60,7 @@ class _OrderCardState extends State<OrderCard> {
children: <InlineSpan>[ children: <InlineSpan>[
TextSpan( TextSpan(
text: '合计:', text: '合计:',
style: TextStyle(color: BaseStyle.color333333), style: TextStyle(color: ktextPrimary),
), ),
TextSpan( TextSpan(
text: '¥${747.98}', text: '¥${747.98}',

@ -28,7 +28,7 @@ class _SubmitBarState extends State<SubmitBar> {
Text( Text(
'全选', '全选',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, color: BaseStyle.color666666), fontSize: BaseStyle.fontSize24, color: ktextSubColor),
), ),
], ],
), ),
@ -52,7 +52,7 @@ class _SubmitBarState extends State<SubmitBar> {
text: '合计:', text: '合计:',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize26, fontSize: BaseStyle.fontSize26,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
TextSpan( TextSpan(
text: '¥${3009.84}', text: '¥${3009.84}',
@ -89,7 +89,7 @@ class _SubmitBarState extends State<SubmitBar> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),

@ -75,7 +75,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: _currentIndex == index color: _currentIndex == index
? BaseStyle.colorffc40c ? BaseStyle.colorffc40c
: BaseStyle.color333333, : ktextPrimary,
), ),
), ),
), ),
@ -128,7 +128,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
infoList[index].sonName, infoList[index].sonName,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),
@ -164,7 +164,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: BaseStyle.fontSize26, fontSize: BaseStyle.fontSize26,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -24,7 +24,7 @@ class RefundDetails extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 10.w), SizedBox(height: 10.w),
@ -32,7 +32,7 @@ class RefundDetails extends StatelessWidget {
'2020年7月8日 13:28', '2020年7月8日 13:28',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -56,7 +56,7 @@ class RefundDetails extends StatelessWidget {
'退款总金额', '退款总金额',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
Text( Text(
@ -64,7 +64,7 @@ class RefundDetails extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -89,7 +89,7 @@ class RefundDetails extends StatelessWidget {
'退款信息', '退款信息',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -66,7 +66,7 @@ class ExplainTemplate extends BeautifulPopupTemplate {
// '一键报警', // '一键报警',
// style: TextStyle( // style: TextStyle(
// fontSize: BaseStyle.fontSize32, // fontSize: BaseStyle.fontSize32,
// color: BaseStyle.color333333, // color: ktextPrimary,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// ), // ),
// ), // ),
@ -76,7 +76,7 @@ class ExplainTemplate extends BeautifulPopupTemplate {
// '点击“呼叫110”后您可以直接拨打本地110。页面中提供了您当前所在位置以便您与警方沟通。GPS信号弱时位置可能存在偏移', // '点击“呼叫110”后您可以直接拨打本地110。页面中提供了您当前所在位置以便您与警方沟通。GPS信号弱时位置可能存在偏移',
// style: TextStyle( // style: TextStyle(
// fontSize: BaseStyle.fontSize28, // fontSize: BaseStyle.fontSize28,
// color: BaseStyle.color666666, // color: ktextSubColor,
// ), // ),
// ), // ),
// ), // ),

@ -40,7 +40,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
); );
@ -73,7 +73,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Text( Text(
'描述相符', '描述相符',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
SizedBox(width: 34.w), SizedBox(width: 34.w),
Row( Row(
@ -178,7 +178,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Text( Text(
'添加图片信息(0/9)', '添加图片信息(0/9)',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
SizedBox(height: 24.w), SizedBox(height: 24.w),
InkWell( InkWell(
@ -218,7 +218,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
); );

@ -85,7 +85,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
'已签收', '已签收',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
], ],
@ -109,7 +109,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
children: [ children: [
Icon( Icon(
Feather.alert_circle, Feather.alert_circle,
color: BaseStyle.color333333, color: ktextPrimary,
size: BaseStyle.fontSize28, size: BaseStyle.fontSize28,
), ),
Container( Container(
@ -119,7 +119,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
'物流投诉', '物流投诉',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize22, fontSize: BaseStyle.fontSize22,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
) )
], ],
@ -158,7 +158,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
'中通快递 3072035702394120', '中通快递 3072035702394120',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize22, fontSize: BaseStyle.fontSize22,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
SizedBox( SizedBox(

@ -32,7 +32,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
); );
@ -55,7 +55,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 10.w), SizedBox(height: 10.w),
@ -63,7 +63,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
'还剩9小时33分自动确认', '还剩9小时33分自动确认',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],
@ -98,7 +98,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
'马泽鹏', '马泽鹏',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(width: 16.w), SizedBox(width: 16.w),
@ -159,7 +159,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
child: Text( child: Text(
'退款', '退款',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
), ),
); );
@ -201,7 +201,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),
@ -248,7 +248,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
Text( Text(
@ -316,7 +316,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
Column( Column(
children: listOrderDetail children: listOrderDetail

@ -44,7 +44,7 @@ class _OrderPageState extends State<OrderPage>
isScrollable: true, isScrollable: true,
indicator: BoxDecoration(), indicator: BoxDecoration(),
labelColor: BaseStyle.colorff8500, labelColor: BaseStyle.colorff8500,
unselectedLabelColor: BaseStyle.color333333, unselectedLabelColor: ktextPrimary,
labelStyle: TextStyle( labelStyle: TextStyle(
fontSize: 28.sp, fontSize: 28.sp,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,

@ -132,7 +132,7 @@ class _PersonalIndexState extends State<PersonalIndex>
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize34, fontSize: BaseStyle.fontSize34,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
title == '我的物业' title == '我的物业'
@ -150,7 +150,7 @@ class _PersonalIndexState extends State<PersonalIndex>
'查看全部', '查看全部',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize22, fontSize: BaseStyle.fontSize22,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(width: 8.w), SizedBox(width: 8.w),

@ -36,7 +36,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
); );
@ -77,7 +77,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
'退款金额', '退款金额',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize34, fontSize: BaseStyle.fontSize34,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
Text( Text(
@ -115,7 +115,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
'退款说明', '退款说明',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize34, fontSize: BaseStyle.fontSize34,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 23.w), SizedBox(height: 23.w),
@ -163,7 +163,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
'提交', '提交',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -33,7 +33,7 @@ class _RefundSelectPageState extends State<RefundSelectPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
); );

@ -36,7 +36,7 @@ class _OrderCardState extends State<OrderCard> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
); );
@ -70,7 +70,7 @@ class _OrderCardState extends State<OrderCard> {
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),
@ -98,7 +98,7 @@ class _OrderCardState extends State<OrderCard> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
Text( Text(
@ -151,7 +151,7 @@ class _OrderCardState extends State<OrderCard> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
], ],

@ -39,7 +39,7 @@ class RefundShopCard extends StatelessWidget {
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -28,7 +28,7 @@ class _RefundTileCardState extends State<RefundTileCard> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize34, fontSize: BaseStyle.fontSize34,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
SizedBox(height: 24.w), SizedBox(height: 24.w),

@ -195,7 +195,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),
@ -273,7 +273,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
'您的觉得我们需要改进的地方', '您的觉得我们需要改进的地方',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
_containerTextField(), _containerTextField(),

@ -101,7 +101,7 @@ class _SettingsPageState extends State<SettingsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
) )
@ -120,7 +120,7 @@ class _SettingsPageState extends State<SettingsPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -185,7 +185,7 @@ class _SignInPageState extends State<SignInPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),
@ -221,7 +221,7 @@ class _SignInPageState extends State<SignInPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize38, fontSize: BaseStyle.fontSize38,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
), ),
SizedBox(height: 89.w), SizedBox(height: 89.w),

@ -100,7 +100,7 @@ class _UserAuthenticationPageState extends State<UserAuthenticationPage> {
: FontWeight.normal, : FontWeight.normal,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: item['isCheck'] color: item['isCheck']
? BaseStyle.color333333 ? ktextPrimary
: BaseStyle.color999999), : BaseStyle.color999999),
), ),
], ],
@ -174,7 +174,7 @@ class _UserAuthenticationPageState extends State<UserAuthenticationPage> {
item['title'], item['title'],
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
SizedBox(height: 25.w), SizedBox(height: 25.w),
item['widget'], item['widget'],
@ -209,7 +209,7 @@ class _UserAuthenticationPageState extends State<UserAuthenticationPage> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize38, fontSize: BaseStyle.fontSize38,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
SizedBox(height: 8.w), SizedBox(height: 8.w),
Column( Column(

@ -1,4 +1,12 @@
import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/pages/things_page/widget/image_grid.dart';
import 'package:akuCommunity/utils/bee_map.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/extensions/num_ext.dart';
import 'package:akuCommunity/extensions/widget_list_ext.dart';
class FixedSubmitPage extends StatefulWidget { class FixedSubmitPage extends StatefulWidget {
FixedSubmitPage({Key key}) : super(key: key); FixedSubmitPage({Key key}) : super(key: key);
@ -7,11 +15,113 @@ class FixedSubmitPage extends StatefulWidget {
_FixedSubmitPageState createState() => _FixedSubmitPageState(); _FixedSubmitPageState createState() => _FixedSubmitPageState();
} }
class FixedSubmitMode {
int tag;
int state;
String text;
List<String> images;
FixedSubmitMode(this.tag, this.state, this.text, this.images);
}
class _FixedSubmitPageState extends State<FixedSubmitPage> { class _FixedSubmitPageState extends State<FixedSubmitPage> {
List<FixedSubmitMode> _model = [
FixedSubmitMode(1, 0, '家里的冰箱坏了,师傅赶紧来看看', <String>[
'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=466219337,2269488732&fm=15&gp=0.jpg',
'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=907707978,1526051881&fm=26&gp=0.jpg',
]),
FixedSubmitMode(0, 3, '我觉得我们小区的绿化可以再多一点', <String>[
'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=111636878,534819054&fm=26&gp=0.jpg',
'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3834533673,769780989&fm=26&gp=0.jpg',
'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1683501076,3787404077&fm=26&gp=0.jpg',
'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1040644610,2290865162&fm=26&gp=0.jpg',
]),
];
Color _getColor(int state) {
switch (state) {
case 0:
case 1:
return kDarkPrimaryColor;
case 2:
case 3:
case 4:
return ktextSubColor;
default:
return kPrimaryColor;
}
}
Widget _buildCard(int fixedTag, int state, String text, List<String> images) {
return Container(
decoration: BoxDecoration(
color: kForeGroundColor, borderRadius: BorderRadius.circular(8.w)),
padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 24.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
BeeMap()
.fixTag[fixedTag]
.text
.color(ktextPrimary)
.bold
.size(32.sp)
.make(),
Spacer(),
BeeMap()
.fixState[state]
.text
.color(_getColor(state))
.size(24.sp)
.make(),
],
),
24.hb,
Divider(
thickness: 1.w,
height: 0,
),
24.hb,
text.text.color(ktextSubColor).size(28.sp).ellipsis.make(),
16.hb,
images.length != 0 ? ImageGrid(images) : SizedBox(),
],
),
);
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
title: '报事报修',
body: Column(
children: [
Expanded(
child: ListView(
padding: EdgeInsets.all(32.w),
children: [
..._model
.map((e) => _buildCard(e.tag, e.state, e.text, e.images))
.toList()
].sepWidget(separate: 24.hb),
),
),
Padding(
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
child: MaterialButton(
color: kPrimaryColor,
onPressed: () {},
child: '新增'.text.bold.color(ktextPrimary).size(32.sp).make(),
minWidth: double.infinity,
height: 98.w,
elevation: 0,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
padding: EdgeInsets.zero,
),
)
],
),
); );
} }
} }

@ -0,0 +1,8 @@
class BeeMap {
Map<int, String> fixTag = {
0: '公区报修',
1: '家庭报修',
};
Map<int, String> fixState = {0: '待分配', 1: '维修中', 2: '已处理',3:'已完成',4:'已取消'};
}

@ -98,7 +98,7 @@ class ActivityCard extends StatelessWidget {
text: subtitleFirst, text: subtitleFirst,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
]), ]),
), ),
@ -118,7 +118,7 @@ class ActivityCard extends StatelessWidget {
text: subtitleSecond, text: subtitleSecond,
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
]), ]),
), ),

@ -34,7 +34,7 @@ class _BottomButtonState extends State<BottomButton> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32, fontSize: BaseStyle.fontSize32,
color: BaseStyle.color333333, color: ktextPrimary,
), ),
), ),
), ),

@ -20,7 +20,7 @@ class _CommonInputState extends State<CommonInput> {
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: BaseStyle.color333333, color: ktextPrimary,
fontSize: BaseStyle.fontSize36, fontSize: BaseStyle.fontSize36,
), ),
controller: widget.inputController, controller: widget.inputController,

@ -126,7 +126,7 @@ class _CommunityCardState extends State<CommunityCard> {
'$peopleNum人已参加', '$peopleNum人已参加',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize22, fontSize: BaseStyle.fontSize22,
color: BaseStyle.color333333), color: ktextPrimary),
), ),
], ],
), ),

@ -2,6 +2,7 @@ import 'package:akuCommunity/pages/convenient_phone/convenient_phone_page.dart';
import 'package:akuCommunity/pages/industry_committee/industry_committee_page.dart'; import 'package:akuCommunity/pages/industry_committee/industry_committee_page.dart';
import 'package:akuCommunity/pages/life_pay/life_pay_page.dart'; import 'package:akuCommunity/pages/life_pay/life_pay_page.dart';
import 'package:akuCommunity/pages/open_door_page/open_door_page.dart'; import 'package:akuCommunity/pages/open_door_page/open_door_page.dart';
import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart';
import 'package:akuCommunity/pages/things_page/things_page.dart'; import 'package:akuCommunity/pages/things_page/things_page.dart';
import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart'; import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart';
import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart'; import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart';
@ -34,7 +35,7 @@ class _HomeGridButtonState extends State<HomeGridButton> {
Get.to(VisitorAccessPage()); Get.to(VisitorAccessPage());
}), }),
GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () { GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () {
Get.to(ThingsPage()); Get.to(FixedSubmitPage());
}), }),
GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () { GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () {
Get.to(LifePayPage()); Get.to(LifePayPage());

Loading…
Cancel
Save