Merge branch 'regex' into amend

hmxc
张萌 4 years ago
commit 11712a80aa

@ -4,27 +4,27 @@ import 'package:akuCommunity/utils/screenutil.dart';
class BaseStyle { class BaseStyle {
/// ///
static final double fontSize18 = Screenutil.size(18); static final double fontSize18 = 18.sp;
static final double fontSize22 = Screenutil.size(22); static final double fontSize22 = 22.sp;
static final double fontSize24 = Screenutil.size(24); static final double fontSize24 = 24.sp;
static final double fontSize26 = Screenutil.size(26); static final double fontSize26 = 26.sp;
static final double fontSize28 = Screenutil.size(28); static final double fontSize28 = 28.sp;
static final double fontSize30 = Screenutil.size(30); static final double fontSize30 = 30.sp;
static final double fontSize32 = Screenutil.size(32); static final double fontSize32 = 32.sp;
static final double fontSize34 = Screenutil.size(34); static final double fontSize34 = 34.sp;
static final double fontSize36 = Screenutil.size(36); static final double fontSize36 = 36.sp;
static final double fontSize38 = Screenutil.size(38); static final double fontSize38 = 38.sp;
static final double fontSize52 = Screenutil.size(52); static final double fontSize52 = 52.sp;
/// ///
static final Color color333333 = Color(0xff333333); static final Color color333333 = Color(0xff333333);

@ -93,7 +93,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
title: Text( title: Text(
'是否确定投${url}一票', '是否确定投${url}一票',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -102,7 +102,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -115,7 +115,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
'确定', '确定',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -143,9 +143,9 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
setState(() {}); setState(() {});
}, },
child: Container( child: Container(
margin: EdgeInsets.only(top: Screenutil.length(39)), margin: EdgeInsets.only(top: 39.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(41), bottom: Screenutil.length(40)), left: 41.w, bottom: 40.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.colord8d8d8, width: 0.5), bottom: BorderSide(color: BaseStyle.colord8d8d8, width: 0.5),
@ -156,7 +156,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
height: Screenutil.length(150), height: 150.w,
alignment: Alignment.center, alignment: Alignment.center,
child: Icon( child: Icon(
isOver isOver
@ -169,20 +169,20 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
: _listView[index]['isCheck'] : _listView[index]['isCheck']
? Colors.red ? Colors.red
: BaseStyle.color979797, : BaseStyle.color979797,
size: Screenutil.length(36), size: 36.w,
), ),
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(17), left: 17.w,
right: Screenutil.length(30), right: 30.w,
), ),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
child: CachedImageWrapper( child: CachedImageWrapper(
url: imagePath, url: imagePath,
width: Screenutil.length(150), width: 150.w,
height: Screenutil.length(150), height: 150.w,
), ),
), ),
), ),
@ -197,7 +197,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
name, name,
style: TextStyle( style: TextStyle(
@ -219,7 +219,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
Navigator.pushNamed(context, PageName.member_list_page.toString()); Navigator.pushNamed(context, PageName.member_list_page.toString());
}, },
child: Container( child: Container(
padding: EdgeInsets.only(bottom: Screenutil.length(24)), padding: EdgeInsets.only(bottom: 24.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)), bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
@ -228,10 +228,10 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(left: Screenutil.length(80)), margin: EdgeInsets.only(left: 80.w),
child: ImageStack( child: ImageStack(
imageList: memberList, imageList: memberList,
imageRadius: Screenutil.size(44), imageRadius: 44.sp,
imageCount: 3, imageCount: 3,
imageBorderWidth: 1, imageBorderWidth: 1,
totalCount: 3, totalCount: 3,
@ -240,7 +240,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
Row( Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(16)), margin: EdgeInsets.only(right: 16.w),
child: Text( child: Text(
'已有${320}人参加', '已有${320}人参加',
style: TextStyle( style: TextStyle(
@ -250,7 +250,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
), ),
Icon( Icon(
AntDesign.right, AntDesign.right,
size: Screenutil.size(36), size: 36.sp,
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
], ],
@ -276,15 +276,14 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length( bottom: ( widget.bundle.getMap('details')['isVote'] ? 0 : 170).w),
widget.bundle.getMap('details')['isVote'] ? 0 : 170)),
children: [ children: [
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(26), top: 26.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(60)), bottom: 60.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -296,19 +295,19 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
fontWeight: FontWeight.w600), fontWeight: FontWeight.w600),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(45)), margin: EdgeInsets.only(top: 45.w),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
child: CachedImageWrapper( child: CachedImageWrapper(
url: widget.bundle.getMap('details')['imagePath'], url: widget.bundle.getMap('details')['imagePath'],
width: Screenutil.length(686), width: 686.w,
height: Screenutil.length(228), height: 228.w,
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(44)), margin: EdgeInsets.only(top: 44.w),
width: Screenutil.length(647), width: 647.w,
child: Html( child: Html(
data: widget.bundle.getMap('details')['isVote'] data: widget.bundle.getMap('details')['isVote']
? htmlData ? htmlData
@ -320,23 +319,23 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
widget.bundle.getMap('details')['isVote'] widget.bundle.getMap('details')['isVote']
? SizedBox() ? SizedBox()
: SizedBox( : SizedBox(
height: Screenutil.length(24), height: 24.w,
child: Container(color: BaseStyle.colorf9f9f9), child: Container(color: BaseStyle.colorf9f9f9),
), ),
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(26), top: 26.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(60)), bottom: 60.w),
child: widget.bundle.getMap('details')['isVote'] child: widget.bundle.getMap('details')['isVote']
? Container( ? Container(
margin: EdgeInsets.only(top: Screenutil.length(44)), margin: EdgeInsets.only(top: 44.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(50), top: 50.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(25)), right: 25.w),
width: Screenutil.length(686), width: 686.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: BaseStyle.colorf3f3f3, color: BaseStyle.colorf3f3f3,
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
@ -354,7 +353,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
), ),
Container( Container(
padding: padding:
EdgeInsets.only(left: Screenutil.length(3)), EdgeInsets.only(left: 3.w),
child: Column( child: Column(
children: _listView children: _listView
.asMap() .asMap()

@ -101,12 +101,12 @@ class _MemberListPageState extends State<MemberListPage> {
Container _memberCard(String imagePath, name, phone) { Container _memberCard(String imagePath, name, phone) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(18), top: 18.w,
bottom: Screenutil.length(18), bottom: 18.w,
left: Screenutil.length(20), left: 20.w,
right: Screenutil.length(10), right: 10.w,
), ),
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)), bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
@ -117,12 +117,12 @@ class _MemberListPageState extends State<MemberListPage> {
Row( Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(18)), margin: EdgeInsets.only(right: 18.w),
child: ClipOval( child: ClipOval(
child: CachedImageWrapper( child: CachedImageWrapper(
url: imagePath, url: imagePath,
width: Screenutil.length(60), width: 60.w,
height: Screenutil.length(60), height: 60.w,
), ),
), ),
), ),

@ -22,10 +22,10 @@ class _AddressEditPageState extends State<AddressEditPage> {
Widget _containerSelectDefault() { Widget _containerSelectDefault() {
return Container( return Container(
color: Colors.white, color: Colors.white,
height: Screenutil.length(96), height: 96.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32), horizontal: 32.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -33,7 +33,7 @@ class _AddressEditPageState extends State<AddressEditPage> {
Text( Text(
'设为默认地址', '设为默认地址',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -63,16 +63,16 @@ class _AddressEditPageState extends State<AddressEditPage> {
onTap: () {}, onTap: () {},
child: Container( child: Container(
color: Colors.white, color: Colors.white,
height: Screenutil.length(96), height: 96.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32), horizontal: 32.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'删除地址', '删除地址',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
), ),
), ),
@ -113,9 +113,9 @@ class _AddressEditPageState extends State<AddressEditPage> {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(66)), SizedBox(height: 66.w),
_containerSelectDefault(), _containerSelectDefault(),
SizedBox(height: Screenutil.length(66)), SizedBox(height: 66.w),
widget.bundle.getMap('details')['isDelete'] widget.bundle.getMap('details')['isDelete']
? _containerDelete() ? _containerDelete()
: SizedBox(), : SizedBox(),

@ -53,36 +53,36 @@ class _AddressEditItemState extends State<AddressEditItem> {
? TextInputType.number ? TextInputType.number
: TextInputType.name, : TextInputType.name,
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle(fontSize: Screenutil.size(28)), style: TextStyle(fontSize: 28.sp),
controller: item['controller'], controller: item['controller'],
onChanged: (String value) {}, onChanged: (String value) {},
maxLines: item['title'] == '详细地址' ? 5 : 1, maxLines: item['title'] == '详细地址' ? 5 : 1,
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(28), top: 28.w,
bottom: Screenutil.length(28), bottom: 28.w,
), ),
hintText: item['hintText'], hintText: item['hintText'],
border: InputBorder.none, //线 border: InputBorder.none, //线
fillColor: Colors.white, fillColor: Colors.white,
filled: true, filled: true,
hintStyle: TextStyle( hintStyle: TextStyle(
color: Color(0xff999999), fontSize: Screenutil.size(28)), color: Color(0xff999999), fontSize: 28.sp),
prefixIcon: Padding( prefixIcon: Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: right:
Screenutil.length(item['title'] == '收货人' ? 88 : 60), (item['title'] == '收货人' ? 88 : 60).w,
top: Screenutil.length(28), top: 28.w,
bottom: bottom:
Screenutil.length(item['title'] == '详细地址' ? 158 : 28), (item['title'] == '详细地址' ? 158 : 28).w,
), ),
child: Text( child: Text(
item['title'], item['title'],
style: TextStyle( style: TextStyle(
color: Color(0xff333333), color: Color(0xff333333),
fontSize: Screenutil.size(28), fontSize: 28.sp,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
), ),

@ -15,12 +15,12 @@ class AddressItem extends StatelessWidget {
Widget _containerImage() { Widget _containerImage() {
return Container( return Container(
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(76), width: 76.w,
height: Screenutil.length(76), height: 76.w,
margin: EdgeInsets.only( margin: EdgeInsets.only(
right: Screenutil.length(20), right: 20.w,
), ),
padding: EdgeInsets.symmetric(vertical: Screenutil.length(12)), padding: EdgeInsets.symmetric(vertical: 12.w),
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
@ -29,7 +29,7 @@ class AddressItem extends StatelessWidget {
? [Color(0xffffd000), Color(0xffff8500)] ? [Color(0xffffd000), Color(0xffff8500)]
: [Color(0xffd8d8d8), Color(0xffd8d8d8)], : [Color(0xffd8d8d8), Color(0xffd8d8d8)],
), ),
borderRadius: BorderRadius.all(Radius.circular(Screenutil.length(76))), borderRadius: BorderRadius.all(Radius.circular(76.w)),
), ),
child: Icon(SimpleLineIcons.location_pin, color: Colors.white), child: Icon(SimpleLineIcons.location_pin, color: Colors.white),
); );
@ -45,23 +45,23 @@ class AddressItem extends StatelessWidget {
Text( Text(
name, name,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Text( Text(
phone, phone,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
], ],
), ),
SizedBox(height: Screenutil.length(12)), SizedBox(height: 12.w),
Container( Container(
width: Screenutil.length(432), width: 432.w,
child: ExtendedText.rich( child: ExtendedText.rich(
TextSpan( TextSpan(
children: [ children: [
@ -69,7 +69,7 @@ class AddressItem extends StatelessWidget {
? ExtendedWidgetSpan( ? ExtendedWidgetSpan(
child: Container( child: Container(
margin: margin:
EdgeInsets.only(right: Screenutil.length(16)), EdgeInsets.only(right: 16.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfffff7d2), color: Color(0xfffff7d2),
border: Border.all( border: Border.all(
@ -77,13 +77,13 @@ class AddressItem extends StatelessWidget {
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(4))), BorderRadius.all(Radius.circular(4))),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(20), horizontal: 20.w,
vertical: Screenutil.length(4), vertical: 4.w,
), ),
child: Text( child: Text(
'默认', '默认',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -93,7 +93,7 @@ class AddressItem extends StatelessWidget {
TextSpan( TextSpan(
text: address, text: address,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
height: 1.5), height: 1.5),
) )
@ -111,7 +111,7 @@ class AddressItem extends StatelessWidget {
Widget _positionedEdit(BuildContext context) { Widget _positionedEdit(BuildContext context) {
return Positioned( return Positioned(
right: 0, right: 0,
top: Screenutil.length(55), top: 55.w,
child: InkWell( child: InkWell(
onTap: () { onTap: () {
Navigator.pushNamed(context, PageName.address_edit_page.toString(), Navigator.pushNamed(context, PageName.address_edit_page.toString(),
@ -126,19 +126,19 @@ class AddressItem extends StatelessWidget {
}, },
child: Row( child: Row(
children: [ children: [
SizedBox(width: Screenutil.length(13)), SizedBox(width: 13.w),
SizedBox( SizedBox(
width: 1, width: 1,
height: Screenutil.length(30), height: 30.w,
child: DecoratedBox( child: DecoratedBox(
decoration: BoxDecoration(color: Color(0xffd8d8d8)), decoration: BoxDecoration(color: Color(0xffd8d8d8)),
), ),
), ),
SizedBox(width: Screenutil.length(13)), SizedBox(width: 13.w),
Text( Text(
'编辑', '编辑',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -156,13 +156,13 @@ class AddressItem extends StatelessWidget {
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
), ),
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(20), top: 20.w,
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(20), horizontal: 20.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
child: Stack( child: Stack(
children: [ children: [

@ -37,10 +37,10 @@ class _CertificationPageState extends State<CertificationPage> {
Widget _idCardType() { Widget _idCardType() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
margin: EdgeInsets.only(bottom: Screenutil.length(60)), margin: EdgeInsets.only(bottom: 60.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)),
@ -51,15 +51,15 @@ class _CertificationPageState extends State<CertificationPage> {
Text( Text(
'证件类型', '证件类型',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Container( Container(
width: Screenutil.length(686), width: 686.w,
child: Text( child: Text(
'身份证', '身份证',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
@ -73,19 +73,19 @@ class _CertificationPageState extends State<CertificationPage> {
Widget _upLoadImage() { Widget _upLoadImage() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
margin: EdgeInsets.only(bottom: Screenutil.length(60)), margin: EdgeInsets.only(bottom: 60.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
'上传证件照片', '上传证件照片',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate( children: List.generate(
@ -104,10 +104,10 @@ class _CertificationPageState extends State<CertificationPage> {
Widget _input(String title, hintText, TextEditingController controller) { Widget _input(String title, hintText, TextEditingController controller) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
margin: EdgeInsets.only(bottom: Screenutil.length(60)), margin: EdgeInsets.only(bottom: 60.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)),
@ -118,9 +118,9 @@ class _CertificationPageState extends State<CertificationPage> {
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
CommonInput(inputController: controller, hintText: hintText) CommonInput(inputController: controller, hintText: hintText)
], ],
), ),
@ -131,10 +131,10 @@ class _CertificationPageState extends State<CertificationPage> {
return InkWell( return InkWell(
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(96), height: 96.w,
width: Screenutil.length(686), width: 686.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26), vertical: 26.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
@ -143,7 +143,7 @@ class _CertificationPageState extends State<CertificationPage> {
'确认提交', '确认提交',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
), ),
@ -161,9 +161,9 @@ class _CertificationPageState extends State<CertificationPage> {
), ),
body: Container( body: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -145,11 +145,11 @@ class _CommonPageState extends State<CommonPage> {
showSearch(context: context, delegate: searchBarDelegate()); showSearch(context: context, delegate: searchBarDelegate());
}, },
child: Container( child: Container(
margin: EdgeInsets.only(right: Screenutil.length(32)), margin: EdgeInsets.only(right: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(40), left: 40.w,
top: Screenutil.length(15), top: 15.w,
bottom: Screenutil.length(15)), bottom: 15.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: BaseStyle.colorf3f3f3, color: BaseStyle.colorf3f3f3,
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
@ -179,7 +179,7 @@ class _CommonPageState extends State<CommonPage> {
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
leading: InkWell( leading: InkWell(
onTap: () => Navigator.pop(context), onTap: () => Navigator.pop(context),
child: Icon(AntDesign.left, size: Screenutil.size(40)), child: Icon(AntDesign.left, size: 40.sp),
), ),
centerTitle: true, centerTitle: true,
title: Builder(builder: (_) { title: Builder(builder: (_) {
@ -195,7 +195,7 @@ class _CommonPageState extends State<CommonPage> {
: widget.bundle.getMap('commentMap')['title'], : widget.bundle.getMap('commentMap')['title'],
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
); );
@ -249,7 +249,7 @@ class _CommonPageState extends State<CommonPage> {
} }
}, },
child: Container( child: Container(
margin: EdgeInsets.only(right: Screenutil.length(32)), margin: EdgeInsets.only(right: 32.w),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
@ -294,7 +294,7 @@ class _CommonPageState extends State<CommonPage> {
return Text( return Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
); );

@ -74,7 +74,7 @@ class _CommunityIndexState extends State<CommunityIndex>
indicatorWeight: 2.0, indicatorWeight: 2.0,
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
labelStyle: TextStyle( labelStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
@ -96,7 +96,7 @@ class _CommunityIndexState extends State<CommunityIndex>
child: Icon( child: Icon(
Icons.add, Icons.add,
color: Colors.white, color: Colors.white,
size: Screenutil.size(40), size: 40.sp,
), ),
onPressed: noteCreateRouter, onPressed: noteCreateRouter,
); );

@ -34,19 +34,19 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
title: Text( title: Text(
'社区', '社区',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
leading: InkWell( leading: InkWell(
onTap: () => Navigator.pop(context), onTap: () => Navigator.pop(context),
child: Container( child: Container(
padding: EdgeInsets.only(left: Screenutil.length(32)), padding: EdgeInsets.only(left: 32.w),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -55,12 +55,12 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
actions: [ actions: [
Container( Container(
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.only(right: Screenutil.length(32)), padding: EdgeInsets.only(right: 32.w),
child: InkWell( child: InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
height: Screenutil.length(64), height: 64.w,
width: Screenutil.length(116), width: 116.w,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffd000), color: Color(0xffffd000),
@ -69,7 +69,7 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
child: Text( child: Text(
'发表', '发表',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -85,7 +85,7 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
child: TextFormField( child: TextFormField(
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
), ),
controller: _noteContent, controller: _noteContent,
onChanged: (String value) {}, onChanged: (String value) {},
@ -93,8 +93,8 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
top: Screenutil.length(0), top: 0.w,
bottom: Screenutil.length(0), bottom: 0.w,
), ),
hintText: hintText, hintText: hintText,
border: InputBorder.none, //线 border: InputBorder.none, //线
@ -102,7 +102,7 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
filled: true, filled: true,
hintStyle: TextStyle( hintStyle: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(34), fontSize: 34.sp,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
), ),
@ -114,8 +114,8 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
return InkWell( return InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
width: Screenutil.length(196), width: 196.w,
height: Screenutil.length(196), height: 196.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
image: DecorationImage( image: DecorationImage(
@ -134,7 +134,7 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
}); });
}, },
child: Container( child: Container(
padding: EdgeInsets.symmetric(vertical: Screenutil.length(30)), padding: EdgeInsets.symmetric(vertical: 30.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
top: BorderSide(color: Color(0xffd8d8d8), width: 1), top: BorderSide(color: Color(0xffd8d8d8), width: 1),
@ -150,13 +150,13 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
Icon( Icon(
AntDesign.message1, AntDesign.message1,
color: Color(0xff333333), color: Color(0xff333333),
size: Screenutil.size(28), size: 28.sp,
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'不可评论', '不可评论',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -166,9 +166,9 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
? Icon( ? Icon(
AntDesign.check, AntDesign.check,
color: Color(0xffffd003), color: Color(0xffffd003),
size: Screenutil.size(40), size: 40.sp,
) )
: SizedBox(height: Screenutil.size(40)), : SizedBox(height: 40.sp),
], ],
), ),
), ),
@ -177,20 +177,20 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
Wrap _wrapThemeList() { Wrap _wrapThemeList() {
return Wrap( return Wrap(
spacing: Screenutil.length(15), spacing: 15.w,
runSpacing: Screenutil.length(20), runSpacing: 20.w,
children: _themeList children: _themeList
.asMap() .asMap()
.keys .keys
.map((index) => index == 0 .map((index) => index == 0
? Container( ? Container(
padding: EdgeInsets.only(top: Screenutil.length(10)), padding: EdgeInsets.only(top: 10.w),
width: Screenutil.length(156), width: 156.w,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
_themeList[index]['title'], _themeList[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -216,13 +216,13 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
width: 0.5), width: 0.5),
borderRadius: BorderRadius.all(Radius.circular(36))), borderRadius: BorderRadius.all(Radius.circular(36))),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(29), horizontal: 29.w,
vertical: Screenutil.length(13), vertical: 13.w,
), ),
child: Text( child: Text(
_themeList[index]['title'], _themeList[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: _themeList[index]['isSelect'] color: _themeList[index]['isSelect']
? Color(0xff333333) ? Color(0xff333333)
: Color(0xff999999), : Color(0xff999999),
@ -251,18 +251,18 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(49), top: 49.w,
left: Screenutil.length(62), left: 62.w,
right: Screenutil.length(62), right: 62.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
_containerTextField(), _containerTextField(),
_containerAddImage(), _containerAddImage(),
SizedBox(height: Screenutil.length(202)), SizedBox(height: 202.w),
_inkWellSelect(), _inkWellSelect(),
SizedBox(height: Screenutil.length(28)), SizedBox(height: 28.w),
_wrapThemeList(), _wrapThemeList(),
], ],
), ),

@ -52,13 +52,13 @@ class _TopiceDetailPageState extends State<TopiceDetailPage> {
SliverAppBar _sliverAppBar(String imagePath) { SliverAppBar _sliverAppBar(String imagePath) {
return SliverAppBar( return SliverAppBar(
expandedHeight: Screenutil.length(500), expandedHeight: 500.w,
pinned: true, pinned: true,
floating: true, floating: true,
elevation: 0, elevation: 0,
backgroundColor: Colors.white, backgroundColor: Colors.white,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -75,14 +75,14 @@ class _TopiceDetailPageState extends State<TopiceDetailPage> {
Positioned _positionedFloatActionButton(){ Positioned _positionedFloatActionButton(){
return Positioned( return Positioned(
bottom: Screenutil.length(124), bottom: 124.w,
right: Screenutil.length(32), right: 32.w,
child: FloatingActionButton( child: FloatingActionButton(
backgroundColor: Color(0xffffd000), backgroundColor: Color(0xffffd000),
child: Icon( child: Icon(
Icons.add, Icons.add,
color: Colors.white, color: Colors.white,
size: Screenutil.size(40), size: 40.sp,
), ),
onPressed: noteCreateRouter, onPressed: noteCreateRouter,
)); ));

@ -168,7 +168,7 @@ class _TabListState extends State<TabList> with AutomaticKeepAliveClientMixin {
hotNum: _topicList[index]['hotNum'], hotNum: _topicList[index]['hotNum'],
) )
: Container( : Container(
margin: EdgeInsets.only(top: Screenutil.length(32)), margin: EdgeInsets.only(top: 32.w),
child: CircleTrend( child: CircleTrend(
title: _circleList[index]['title'], title: _circleList[index]['title'],
contentList: _circleList[index]['contentList'], contentList: _circleList[index]['contentList'],

@ -15,15 +15,15 @@ class TopicCard extends StatefulWidget {
class _TopicCardState extends State<TopicCard> { class _TopicCardState extends State<TopicCard> {
TextStyle _textStyleTitle() { TextStyle _textStyleTitle() {
return TextStyle(fontSize: Screenutil.size(28), color: Color(0xff333333)); return TextStyle(fontSize: 28.sp, color: Color(0xff333333));
} }
TextStyle _textStyleSubtitle() { TextStyle _textStyleSubtitle() {
return TextStyle(fontSize: Screenutil.size(22), color: Color(0xff666666)); return TextStyle(fontSize: 22.sp, color: Color(0xff666666));
} }
TextStyle _textStyleHot() { TextStyle _textStyleHot() {
return TextStyle(fontSize: Screenutil.size(22), color: Color(0xff333333)); return TextStyle(fontSize: 22.sp, color: Color(0xff333333));
} }
void topiceDetailRouter(String subtitle, String imagePath) { void topiceDetailRouter(String subtitle, String imagePath) {
@ -38,16 +38,16 @@ class _TopicCardState extends State<TopicCard> {
children: [ children: [
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(160), height: 160.w,
width: Screenutil.length(250), width: 250.w,
), ),
SizedBox(width: Screenutil.length(12)), SizedBox(width: 12.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(383), width: 383.w,
height: Screenutil.length(80), height: 80.w,
child: Text( child: Text(
title, title,
maxLines: 2, maxLines: 2,
@ -55,9 +55,9 @@ class _TopicCardState extends State<TopicCard> {
style: _textStyleTitle(), style: _textStyleTitle(),
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Container( Container(
width: Screenutil.length(365), width: 365.w,
child: Text( child: Text(
subtitle, subtitle,
maxLines: 1, maxLines: 1,
@ -80,9 +80,9 @@ class _TopicCardState extends State<TopicCard> {
Icon( Icon(
MaterialIcons.whatshot, MaterialIcons.whatshot,
color: Color(0xffd4270a), color: Color(0xffd4270a),
size: Screenutil.size(23), size: 23.sp,
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
hotNum, hotNum,
style: _textStyleHot(), style: _textStyleHot(),
@ -97,11 +97,11 @@ class _TopicCardState extends State<TopicCard> {
return Container( return Container(
color: Colors.white, color: Colors.white,
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(20), top: 20.w,
), ),
padding: EdgeInsets.all(Screenutil.length(20)), padding: EdgeInsets.all(20.w),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
topiceDetailRouter( topiceDetailRouter(

@ -36,7 +36,7 @@ class _TrendCardState extends State<TrendCard> {
title: Text( title: Text(
'是否${url}?', '是否${url}?',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -45,7 +45,7 @@ class _TrendCardState extends State<TrendCard> {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -58,7 +58,7 @@ class _TrendCardState extends State<TrendCard> {
'确定', '确定',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -84,11 +84,11 @@ class _TrendCardState extends State<TrendCard> {
return Container( return Container(
color: Colors.white, color: Colors.white,
height: height:
Screenutil.length(300) + MediaQuery.of(context).viewPadding.bottom, 300.w + MediaQuery.of(context).viewPadding.bottom,
child: Stack( child: Stack(
children: [ children: [
Container( Container(
height: Screenutil.length(160), height: 160.w,
child: ListView.builder( child: ListView.builder(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
@ -98,12 +98,12 @@ class _TrendCardState extends State<TrendCard> {
_showDialog(nameItems[index]['title']); _showDialog(nameItems[index]['title']);
}, },
child: Container( child: Container(
height: Screenutil.length(160), height: 160.w,
width: Screenutil.length(160), width: 160.w,
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(10), left: 10.w,
right: Screenutil.length(10), right: 10.w,
top: Screenutil.length(40), top: 40.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Column( child: Column(
@ -111,15 +111,15 @@ class _TrendCardState extends State<TrendCard> {
children: [ children: [
Image.asset( Image.asset(
nameItems[index]['image'], nameItems[index]['image'],
width: Screenutil.length(65), width: 65.w,
height: Screenutil.length(65), height: 65.w,
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(10)), margin: EdgeInsets.only(top: 10.w),
child: Text( child: Text(
nameItems[index]['title'], nameItems[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(26), fontSize: 26.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -140,7 +140,7 @@ class _TrendCardState extends State<TrendCard> {
}, },
child: Container( child: Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: Screenutil.length(98), height: 98.w,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -155,7 +155,7 @@ class _TrendCardState extends State<TrendCard> {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(38), fontSize: 38.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -175,28 +175,28 @@ class _TrendCardState extends State<TrendCard> {
TextStyle _textStyleName() { TextStyle _textStyleName() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
); );
} }
TextStyle _textStyleContent() { TextStyle _textStyleContent() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
); );
} }
TextStyle _textStyleTag() { TextStyle _textStyleTag() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
); );
} }
TextStyle _textStylePopup() { TextStyle _textStylePopup() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
); );
} }
@ -211,7 +211,7 @@ class _TrendCardState extends State<TrendCard> {
elevation: 0, elevation: 0,
offset: Offset(0, -53), offset: Offset(0, -53),
child: Container( child: Container(
width: Screenutil.length(54), width: 54.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffd8d8d8), color: Color(0xffd8d8d8),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -219,7 +219,7 @@ class _TrendCardState extends State<TrendCard> {
child: Icon( child: Icon(
Feather.more_horizontal, Feather.more_horizontal,
color: Colors.white, color: Colors.white,
size: Screenutil.size(36), size: 36.sp,
), ),
), ),
onSelected: (String value) { onSelected: (String value) {
@ -243,17 +243,17 @@ class _TrendCardState extends State<TrendCard> {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Container( child: Container(
height: Screenutil.length(68), height: 68.w,
width: Screenutil.length(181), width: 181.w,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon( Icon(
AntDesign.hearto, AntDesign.hearto,
size: Screenutil.size(30), size: 30.sp,
color: Color(0xff000000), color: Color(0xff000000),
), ),
SizedBox(width: Screenutil.length(11)), SizedBox(width: 11.w),
Text( Text(
'', '',
style: _textStylePopup(), style: _textStylePopup(),
@ -264,7 +264,7 @@ class _TrendCardState extends State<TrendCard> {
), ),
SizedBox( SizedBox(
width: 1, width: 1,
height: Screenutil.length(48), height: 48.w,
child: DecoratedBox( child: DecoratedBox(
decoration: BoxDecoration(color: Color(0xff979797)), decoration: BoxDecoration(color: Color(0xff979797)),
), ),
@ -275,17 +275,17 @@ class _TrendCardState extends State<TrendCard> {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Container( child: Container(
height: Screenutil.length(68), height: 68.w,
width: Screenutil.length(181), width: 181.w,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon( Icon(
Feather.message_square, Feather.message_square,
size: Screenutil.size(30), size: 30.sp,
color: Color(0xff000000), color: Color(0xff000000),
), ),
SizedBox(width: Screenutil.length(11)), SizedBox(width: 11.w),
Text( Text(
'评论', '评论',
style: _textStylePopup(), style: _textStylePopup(),
@ -317,20 +317,20 @@ class _TrendCardState extends State<TrendCard> {
height: 86.w, height: 86.w,
child: avatar, child: avatar,
), ),
SizedBox(width: Screenutil.length(9)), SizedBox(width: 9.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
padding: EdgeInsets.only(left: Screenutil.length(10)), padding: EdgeInsets.only(left: 10.w),
child: Text( child: Text(
name, name,
style: _textStyleName(), style: _textStyleName(),
), ),
), ),
SizedBox(height: Screenutil.length(6)), SizedBox(height: 6.w),
Container( Container(
padding: EdgeInsets.only(left: Screenutil.length(14)), padding: EdgeInsets.only(left: 14.w),
child: ExpandableText( child: ExpandableText(
text: content, text: content,
maxLines: 2, maxLines: 2,
@ -342,13 +342,13 @@ class _TrendCardState extends State<TrendCard> {
), ),
], ],
), ),
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
Padding( Padding(
padding: EdgeInsets.only(left: Screenutil.length(95)), padding: EdgeInsets.only(left: 95.w),
child: Column( child: Column(
children: [ children: [
ImageGrid(widget.imageUrl), ImageGrid(widget.imageUrl),
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
Stack( Stack(
children: [ children: [
Row( Row(
@ -374,7 +374,7 @@ class _TrendCardState extends State<TrendCard> {
_isLike ? AntDesign.heart : AntDesign.hearto, _isLike ? AntDesign.heart : AntDesign.hearto,
color: color:
_isLike ? Color(0xffff6666) : Color(0xffd8d8d8), _isLike ? Color(0xffff6666) : Color(0xffd8d8d8),
size: Screenutil.size(36), size: 36.sp,
), ),
), ),
), ),
@ -386,7 +386,7 @@ class _TrendCardState extends State<TrendCard> {
child: Icon( child: Icon(
AntDesign.message1, AntDesign.message1,
color: Color(0xffd8d8d8), color: Color(0xffd8d8d8),
size: Screenutil.size(36), size: 36.sp,
), ),
), ),
), ),
@ -426,10 +426,10 @@ class _TrendCardState extends State<TrendCard> {
), ),
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(46), top: 46.w,
left: Screenutil.length(32), left: 32.w,
bottom: Screenutil.length(22), bottom: 22.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: _columnCard(widget.name, widget.content,widget.avatar) child: _columnCard(widget.name, widget.content,widget.avatar)
); );

@ -22,11 +22,11 @@ class ConfirmOrderPage extends StatelessWidget {
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(
padding: EdgeInsets.only(bottom: Screenutil.length(98)), padding: EdgeInsets.only(bottom: 98.w),
children: [ children: [
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
ConfirmAddress(), ConfirmAddress(),
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
ConfirmContent(cartMap: bundle.getMap('cartMap')), ConfirmContent(cartMap: bundle.getMap('cartMap')),
], ],
), ),

@ -15,7 +15,7 @@ class PayOrderPage extends StatelessWidget {
isCloseButton: false, isCloseButton: false,
isOverlayTapDismiss: false, isOverlayTapDismiss: false,
titleStyle: titleStyle:
TextStyle(fontSize: Screenutil.size(38), color: Color(0xff333333)), TextStyle(fontSize: 38.sp, color: Color(0xff333333)),
); );
List<Map<String, dynamic>> _listPay = [ List<Map<String, dynamic>> _listPay = [
@ -24,7 +24,7 @@ class PayOrderPage extends StatelessWidget {
'widget': Icon( 'widget': Icon(
AntDesign.alipay_circle, AntDesign.alipay_circle,
color: Color(0xff06b4fd), color: Color(0xff06b4fd),
size: Screenutil.length(50), size: 50.w,
), ),
'id': 'alipay', 'id': 'alipay',
'isCheck': true 'isCheck': true
@ -33,8 +33,8 @@ class PayOrderPage extends StatelessWidget {
'title': '微信支付', 'title': '微信支付',
'widget': Image.asset( 'widget': Image.asset(
AssetsImage.WXPAY, AssetsImage.WXPAY,
height: Screenutil.length(60), height: 60.w,
width: Screenutil.length(60), width: 60.w,
), ),
'id': 'wxpay', 'id': 'wxpay',
'isCheck': false 'isCheck': false
@ -57,9 +57,9 @@ class PayOrderPage extends StatelessWidget {
context: context, context: context,
title: "支付成功!~", title: "支付成功!~",
image: Container( image: Container(
margin: EdgeInsets.only(top: Screenutil.length(40)), margin: EdgeInsets.only(top: 40.w),
height: Screenutil.length(200), height: 200.w,
width: Screenutil.length(200), width: 200.w,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
@ -68,12 +68,12 @@ class PayOrderPage extends StatelessWidget {
colors: [Color(0xffffe16b), Color(0xffffc40d)], colors: [Color(0xffffe16b), Color(0xffffc40d)],
), ),
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(200))), BorderRadius.all(Radius.circular(200.w)),
), ),
child: Icon( child: Icon(
Icons.check, Icons.check,
color: Colors.white, color: Colors.white,
size: Screenutil.length(150), size: 150.w,
), ),
), ),
style: alertStyle, style: alertStyle,
@ -86,7 +86,7 @@ class PayOrderPage extends StatelessWidget {
), ),
onPressed: () => Navigator.pop(context), onPressed: () => Navigator.pop(context),
color: Color(0xffffc40d), color: Color(0xffffc40d),
radius: BorderRadius.circular(Screenutil.length(8)), radius: BorderRadius.circular(8.w),
), ),
], ],
).show(); ).show();
@ -94,8 +94,8 @@ class PayOrderPage extends StatelessWidget {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(27), bottom: 27.w,
top: Screenutil.length(28), top: 28.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
@ -107,18 +107,18 @@ class PayOrderPage extends StatelessWidget {
Row( Row(
children: [ children: [
widget, widget,
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
], ],
), ),
Icon( Icon(
AntDesign.right, AntDesign.right,
color: Color(0xff999999), color: Color(0xff999999),
size: Screenutil.length(32), size: 32.w,
), ),
], ],
), ),
@ -139,21 +139,21 @@ class PayOrderPage extends StatelessWidget {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(130), top: 130.w,
bottom: Screenutil.length(130), bottom: 130.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'¥${(double.parse(bundle.getMap('cartMap')["itemprice"]) * bundle.getMap('cartMap')["count"]).toStringAsFixed(2)}', '¥${(double.parse(bundle.getMap('cartMap')["itemprice"]) * bundle.getMap('cartMap')["count"]).toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(48), fontSize: 48.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
child: Column( child: Column(
children: List.generate( children: List.generate(
_listPay.length, _listPay.length,

@ -15,11 +15,11 @@ class ConfirmAddress extends StatefulWidget {
class _ConfirmAddressState extends State<ConfirmAddress> { class _ConfirmAddressState extends State<ConfirmAddress> {
Container _containerImage() { Container _containerImage() {
return Container( return Container(
padding: EdgeInsets.symmetric(vertical: Screenutil.length(12)), padding: EdgeInsets.symmetric(vertical: 12.w),
child: Image.asset( child: Image.asset(
AssetsImage.LOCATION, AssetsImage.LOCATION,
height: Screenutil.length(54), height: 54.w,
width: Screenutil.length(54), width: 54.w,
), ),
); );
} }
@ -34,27 +34,27 @@ class _ConfirmAddressState extends State<ConfirmAddress> {
Text( Text(
'周玲慧', '周玲慧',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Text( Text(
'18868945727', '18868945727',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
], ],
), ),
SizedBox(height: Screenutil.length(6)), SizedBox(height: 6.w),
Text( Text(
'浙江省 宁波市 江北区 工程学院阿库旅游f6', '浙江省 宁波市 江北区 工程学院阿库旅游f6',
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -65,11 +65,11 @@ class _ConfirmAddressState extends State<ConfirmAddress> {
Positioned _positionedIcon() { Positioned _positionedIcon() {
return Positioned( return Positioned(
bottom: Screenutil.length(58), bottom: 58.w,
right: 0, right: 0,
child: Icon( child: Icon(
AntDesign.right, AntDesign.right,
size: Screenutil.size(34), size: 34.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
); );
@ -84,8 +84,8 @@ class _ConfirmAddressState extends State<ConfirmAddress> {
..putMap('commentMap', {'title': '我的地址', 'isActions': true})); ..putMap('commentMap', {'title': '我的地址', 'isActions': true}));
}, },
child: Container( child: Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(18)), padding: EdgeInsets.symmetric(horizontal: 18.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
@ -94,14 +94,14 @@ class _ConfirmAddressState extends State<ConfirmAddress> {
children: [ children: [
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(18), horizontal: 18.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
_containerImage(), _containerImage(),
SizedBox(width: Screenutil.length(18)), SizedBox(width: 18.w),
_containerContent(), _containerContent(),
], ],
), ),

@ -19,7 +19,7 @@ class ConfirmBottomBar extends StatelessWidget {
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'合计:¥${(double.parse(cartMap["itemprice"]) * cartMap["count"]).toStringAsFixed(2)}', '合计:¥${(double.parse(cartMap["itemprice"]) * cartMap["count"]).toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
@ -43,8 +43,8 @@ class ConfirmBottomBar extends StatelessWidget {
borderRadius: BorderRadius.all(Radius.circular(33)), borderRadius: BorderRadius.all(Radius.circular(33)),
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(39), horizontal: 39.w,
vertical: Screenutil.length(12), vertical: 12.w,
), ),
child: Text( child: Text(
'提交订单', '提交订单',
@ -62,18 +62,18 @@ class ConfirmBottomBar extends StatelessWidget {
return Container( return Container(
color: Colors.white, color: Colors.white,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: Screenutil.length(98), height: 98.w,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(15), top: 15.w,
bottom: Screenutil.length(17), bottom: 17.w,
right: Screenutil.length(34), right: 34.w,
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
_countPrice(), _countPrice(),
SizedBox(width: Screenutil.length(12)), SizedBox(width: 12.w),
_submit(context), _submit(context),
], ],
), ),

@ -16,28 +16,28 @@ class ConfirmContent extends StatelessWidget {
children: [ children: [
CachedImageWrapper( CachedImageWrapper(
url: cartMap["itempic"], url: cartMap["itempic"],
height: Screenutil.length(210), height: 210.w,
width: Screenutil.length(210), width: 210.w,
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
children: [ children: [
Container( Container(
width: Screenutil.length(288), width: 288.w,
child: Text( child: Text(
cartMap["itemtitle"], cartMap["itemtitle"],
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Container( Container(
width: Screenutil.length(280), width: 280.w,
padding: EdgeInsets.all(Screenutil.length(10)), padding: EdgeInsets.all(10.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfff0f0f0), color: Color(0xfff0f0f0),
borderRadius: BorderRadius.all(Radius.circular(2)), borderRadius: BorderRadius.all(Radius.circular(2)),
@ -53,7 +53,7 @@ class ConfirmContent extends StatelessWidget {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(20), fontSize: 20.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
), ),
@ -73,15 +73,15 @@ class ConfirmContent extends StatelessWidget {
Text( Text(
'共计${cartMap["count"]}', '共计${cartMap["count"]}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'合计:¥${(double.parse(cartMap["itemprice"]) * cartMap["count"]).toStringAsFixed(2)}', '合计:¥${(double.parse(cartMap["itemprice"]) * cartMap["count"]).toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
), ),
) )
@ -98,7 +98,7 @@ class ConfirmContent extends StatelessWidget {
child: Text( child: Text(
'${cartMap["itemprice"]}', '${cartMap["itemprice"]}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
@ -110,12 +110,12 @@ class ConfirmContent extends StatelessWidget {
Widget _cartNum() { Widget _cartNum() {
return Positioned( return Positioned(
right: 0, right: 0,
top: Screenutil.length(38), top: 38.w,
child: Container( child: Container(
child: Text( child: Text(
'x${cartMap["count"]}', 'x${cartMap["count"]}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(20), fontSize: 20.sp,
color: Color(0xff999999), color: Color(0xff999999),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
@ -131,10 +131,10 @@ class ConfirmContent extends StatelessWidget {
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
), ),
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(20), horizontal: 20.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
child: Stack( child: Stack(
children: [ children: [
@ -144,15 +144,15 @@ class ConfirmContent extends StatelessWidget {
Container( Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(30), left: 30.w,
right: Screenutil.length(12), right: 12.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(56), top: 56.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@ -160,14 +160,14 @@ class ConfirmContent extends StatelessWidget {
Text( Text(
'配送方式', '配送方式',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
SizedBox(width: Screenutil.length(26)), SizedBox(width: 26.w),
Text( Text(
'普通配送', '普通配送',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
], ],
@ -175,7 +175,7 @@ class ConfirmContent extends StatelessWidget {
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(56), top: 56.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -183,7 +183,7 @@ class ConfirmContent extends StatelessWidget {
Text( Text(
'开具发票', '开具发票',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
InkWell( InkWell(
@ -196,22 +196,22 @@ class ConfirmContent extends StatelessWidget {
child: Row( child: Row(
children: [ children: [
Container( Container(
height: Screenutil.length(80), height: 80.w,
width: Screenutil.length(353), width: 353.w,
child: Text( child: Text(
'增值税电子普通发票-明显-企业-宁波阿库旅游有限公司', '增值税电子普通发票-明显-企业-宁波阿库旅游有限公司',
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Icon( Icon(
AntDesign.right, AntDesign.right,
size: Screenutil.size(30), size: 30.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
], ],
@ -222,7 +222,7 @@ class ConfirmContent extends StatelessWidget {
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(56), top: 56.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@ -230,14 +230,14 @@ class ConfirmContent extends StatelessWidget {
Text( Text(
'订单备注', '订单备注',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
SizedBox(width: Screenutil.length(14)), SizedBox(width: 14.w),
Text( Text(
'选填', '选填',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
], ],
@ -246,7 +246,7 @@ class ConfirmContent extends StatelessWidget {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(104)), SizedBox(height: 104.w),
], ],
), ),
_cartFooter(), _cartFooter(),

@ -24,14 +24,14 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
}, },
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(12), top: 12.w,
bottom: Screenutil.length(20), bottom: 20.w,
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(32), horizontal: 32.w,
vertical: Screenutil.length(16), vertical: 16.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfff9f9f9), color: Color(0xfff9f9f9),
@ -54,7 +54,7 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
List<Widget> _silverBuilder(BuildContext context, bool innerBoxIsScrolled) { List<Widget> _silverBuilder(BuildContext context, bool innerBoxIsScrolled) {
double statusBarHeight = MediaQuery.of(context).padding.top; double statusBarHeight = MediaQuery.of(context).padding.top;
double _swiperHeight = Screenutil.length(122); double _swiperHeight = 122.w;
double _spikeHeight = 25; double _spikeHeight = 25;
double _appBarHeight = _swiperHeight - _spikeHeight - statusBarHeight; double _appBarHeight = _swiperHeight - _spikeHeight - statusBarHeight;
return <Widget>[ return <Widget>[
@ -63,7 +63,7 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
bottom: PreferredSize( bottom: PreferredSize(
child: Container(), child: Container(),
preferredSize: Size.fromHeight(Screenutil.length(_appBarHeight))), preferredSize: Size.fromHeight((_appBarHeight).h)),
flexibleSpace: Column( flexibleSpace: Column(
children: <Widget>[ children: <Widget>[
_containerSearch(), _containerSearch(),
@ -78,11 +78,11 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
child: Container( child: Container(
color: Colors.white, color: Colors.white,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Text( child: Text(
'小区服务电话', '小区服务电话',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
), ),
), ),
)), )),

@ -50,7 +50,7 @@ class _PhoneListState extends State<PhoneList> {
title: Text( title: Text(
url, url,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -59,7 +59,7 @@ class _PhoneListState extends State<PhoneList> {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -72,7 +72,7 @@ class _PhoneListState extends State<PhoneList> {
'呼叫', '呼叫',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -89,10 +89,10 @@ class _PhoneListState extends State<PhoneList> {
Widget _phoneCard(String name, String phone) { Widget _phoneCard(String name, String phone) {
return Container( return Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(20), bottom: 20.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
@ -108,15 +108,15 @@ class _PhoneListState extends State<PhoneList> {
Text( Text(
name, name,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(12)), SizedBox(height: 12.w),
Text( Text(
phone, phone,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -128,8 +128,8 @@ class _PhoneListState extends State<PhoneList> {
}, },
child: Image.asset( child: Image.asset(
AssetsImage.PHONE, AssetsImage.PHONE,
height: Screenutil.length(60), height: 60.w,
width: Screenutil.length(60), width: 60.w,
), ),
), ),
], ],

@ -53,11 +53,11 @@ class _FitupManagePageState extends State<FitupManagePage>
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
), ),
labelPadding: labelPadding:
EdgeInsets.symmetric(horizontal: Screenutil.length(131.5)), EdgeInsets.symmetric(horizontal: (131.5).w),
indicatorColor: Color(0xffffc40c), indicatorColor: Color(0xffffc40c),
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
indicatorPadding: indicatorPadding:
EdgeInsets.symmetric(horizontal: Screenutil.length(21)), EdgeInsets.symmetric(horizontal: 21.w),
isScrollable: true, isScrollable: true,
controller: _controller, controller: _controller,
tabs: List.generate( tabs: List.generate(

@ -47,16 +47,16 @@ class _CommonSelectState extends State<CommonSelect> {
title: Text( title: Text(
"证件类型", "证件类型",
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
confirmTextStyle: TextStyle( confirmTextStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xffffc40c), color: Color(0xffffc40c),
), ),
cancelTextStyle: TextStyle( cancelTextStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
onConfirm: (Picker picker, List value) { onConfirm: (Picker picker, List value) {
@ -84,7 +84,7 @@ class _CommonSelectState extends State<CommonSelect> {
Icon( Icon(
AntDesign.right, AntDesign.right,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(32), size: 32.w,
), ),
], ],
), ),

@ -39,8 +39,8 @@ class _DecoratorInfoState extends State<DecoratorInfo> {
Widget _cardList(String title, Widget widget) { Widget _cardList(String title, Widget widget) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -52,9 +52,9 @@ class _DecoratorInfoState extends State<DecoratorInfo> {
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
widget widget
], ],
), ),
@ -64,8 +64,8 @@ class _DecoratorInfoState extends State<DecoratorInfo> {
Widget _upLoadImage() { Widget _upLoadImage() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -77,9 +77,9 @@ class _DecoratorInfoState extends State<DecoratorInfo> {
Text( Text(
'上传证件照片', '上传证件照片',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate( children: List.generate(

@ -49,7 +49,7 @@ class _DirectorManageState extends State<DirectorManage>
Widget _doorIdCard() { Widget _doorIdCard() {
return Container( return Container(
width: Screenutil.length(686), width: 686.w,
child: RichText( child: RichText(
text: TextSpan(children: <InlineSpan>[ text: TextSpan(children: <InlineSpan>[
TextSpan( TextSpan(
@ -76,8 +76,8 @@ class _DirectorManageState extends State<DirectorManage>
Widget _cardList(String title, Widget widget) { Widget _cardList(String title, Widget widget) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -89,9 +89,9 @@ class _DirectorManageState extends State<DirectorManage>
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
widget widget
], ],
), ),
@ -101,8 +101,8 @@ class _DirectorManageState extends State<DirectorManage>
Widget _upLoadImage() { Widget _upLoadImage() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -114,9 +114,9 @@ class _DirectorManageState extends State<DirectorManage>
Text( Text(
'上传凭证', '上传凭证',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate( children: List.generate(
@ -127,7 +127,7 @@ class _DirectorManageState extends State<DirectorManage>
), ),
), ),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate( children: List.generate(
@ -140,7 +140,7 @@ class _DirectorManageState extends State<DirectorManage>
), ),
), ),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate( children: List.generate(
@ -162,16 +162,16 @@ class _DirectorManageState extends State<DirectorManage>
return InkWell( return InkWell(
child: Center( child: Center(
child: Container( child: Container(
margin: EdgeInsets.only(bottom: Screenutil.length(64)), margin: EdgeInsets.only(bottom: 64.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: BaseStyle.colorffc40c, color: BaseStyle.colorffc40c,
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
), ),
width: Screenutil.length(426), width: 426.w,
height: Screenutil.length(82), height: 82.w,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(19), top: 19.w,
bottom: Screenutil.length(18), bottom: 18.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
@ -201,9 +201,9 @@ class _DirectorManageState extends State<DirectorManage>
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -223,7 +223,7 @@ class _DirectorManageState extends State<DirectorManage>
hintText: '请输入公司名称')), hintText: '请输入公司名称')),
_cardList('门禁卡数量', _doorIdCard()), _cardList('门禁卡数量', _doorIdCard()),
_upLoadImage(), _upLoadImage(),
SizedBox(height: Screenutil.length(78)), SizedBox(height: 78.w),
Text( Text(
'装修人员', '装修人员',
style: TextStyle( style: TextStyle(
@ -242,10 +242,10 @@ class _DirectorManageState extends State<DirectorManage>
}); });
}, },
child: Container( child: Container(
margin: EdgeInsets.only(top: Screenutil.length(54)), margin: EdgeInsets.only(top: 54.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(16), top: 16.w,
bottom: Screenutil.length(16), bottom: 16.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(

@ -17,7 +17,7 @@ class _HouseInfoState extends State<HouseInfo> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(32), bottom: 32.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -29,10 +29,10 @@ class _HouseInfoState extends State<HouseInfo> {
children: [ children: [
Image.asset( Image.asset(
AssetsImage.HOUSEATTESTATION, AssetsImage.HOUSEATTESTATION,
height: Screenutil.length(48), height: 48.w,
width: Screenutil.length(48), width: 48.w,
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -43,7 +43,7 @@ class _HouseInfoState extends State<HouseInfo> {
color: BaseStyle.color474747, color: BaseStyle.color474747,
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
widget.subtitle, widget.subtitle,
style: TextStyle( style: TextStyle(

@ -78,11 +78,11 @@ class _OwnerManageState extends State<OwnerManage>
.keys .keys
.map((index) => Container( .map((index) => Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
margin: EdgeInsets.only( margin: EdgeInsets.only(
bottom: Screenutil.length(index == 2 ? 117 : 0)), bottom:(index == 2 ? 117 : 0).w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: bottom:
@ -97,7 +97,7 @@ class _OwnerManageState extends State<OwnerManage>
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
color: BaseStyle.color333333), color: BaseStyle.color333333),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
_listWidget[index]['widget'], _listWidget[index]['widget'],
], ],
), ),
@ -120,9 +120,9 @@ class _OwnerManageState extends State<OwnerManage>
}, },
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -138,7 +138,7 @@ class _OwnerManageState extends State<OwnerManage>
Column( Column(
children: _listView(), children: _listView(),
), ),
SizedBox(height: Screenutil.length(89)), SizedBox(height: 89.w),
], ],
), ),
), ),

@ -20,7 +20,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
'widget': Icon( 'widget': Icon(
AntDesign.alipay_circle, AntDesign.alipay_circle,
color: Color(0xff06b4fd), color: Color(0xff06b4fd),
size: Screenutil.length(50), size: 50.w,
), ),
'id': 'alipay', 'id': 'alipay',
'isCheck': true 'isCheck': true
@ -29,8 +29,8 @@ class _PayModelSheetState extends State<PayModelSheet> {
'title': '微信支付', 'title': '微信支付',
'widget': Image.asset( 'widget': Image.asset(
AssetsImage.WXPAY, AssetsImage.WXPAY,
height: Screenutil.length(60), height: 60.w,
width: Screenutil.length(60), width: 60.w,
), ),
'id': 'wxpay', 'id': 'wxpay',
'isCheck': false 'isCheck': false
@ -53,9 +53,9 @@ class _PayModelSheetState extends State<PayModelSheet> {
builder: (context) { builder: (context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(20), left: 20.w,
right: Screenutil.length(20), right: 20.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -73,7 +73,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
IconButton( IconButton(
icon: Icon( icon: Icon(
AntDesign.left, AntDesign.left,
size: Screenutil.size(40), size: 40.sp,
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
onPressed: () { onPressed: () {
@ -81,7 +81,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
}, },
), ),
Container( Container(
padding: EdgeInsets.only(left: Screenutil.length(190)), padding: EdgeInsets.only(left: 190.w),
child: Text( child: Text(
'选择付款方式', '选择付款方式',
style: TextStyle( style: TextStyle(
@ -123,18 +123,18 @@ class _PayModelSheetState extends State<PayModelSheet> {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(10), top: 10.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
logo, logo,
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Expanded( Expanded(
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(27), bottom: 27.w,
top: Screenutil.length(28), top: 28.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -154,7 +154,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
? Icon( ? Icon(
AntDesign.check, AntDesign.check,
color: BaseStyle.colorffc40c, color: BaseStyle.colorffc40c,
size: Screenutil.length(50), size: 50.w,
) )
: SizedBox(), : SizedBox(),
], ],
@ -172,8 +172,8 @@ class _PayModelSheetState extends State<PayModelSheet> {
onTap: _showModelBotoomSheet, onTap: _showModelBotoomSheet,
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(27), bottom: 27.w,
top: Screenutil.length(28), top: 28.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -185,7 +185,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
Row( Row(
children: [ children: [
_listPay[_currentindex]['widget'], _listPay[_currentindex]['widget'],
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Text( Text(
_listPay[_currentindex]['title'], _listPay[_currentindex]['title'],
style: TextStyle( style: TextStyle(
@ -197,7 +197,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
Icon( Icon(
AntDesign.right, AntDesign.right,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(32), size: 32.w,
), ),
], ],
), ),
@ -212,9 +212,9 @@ class _PayModelSheetState extends State<PayModelSheet> {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(36), top: 36.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
children: [ children: [
@ -225,7 +225,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
bottom: BorderSide( bottom: BorderSide(
color: BaseStyle.coloreeeeee, width: 0.5)), color: BaseStyle.coloreeeeee, width: 0.5)),
), ),
padding: EdgeInsets.only(bottom: Screenutil.length(20)), padding: EdgeInsets.only(bottom: 20.w),
child: Text( child: Text(
'付款详情', '付款详情',
style: TextStyle( style: TextStyle(
@ -237,8 +237,8 @@ class _PayModelSheetState extends State<PayModelSheet> {
), ),
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(80), bottom: 80.w,
top: Screenutil.length(89), top: 89.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -258,7 +258,7 @@ class _PayModelSheetState extends State<PayModelSheet> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
Text( Text(
'注释:装修押金${5000}元,垃圾清理费${300}', '注释:装修押金${5000}元,垃圾清理费${300}',
style: TextStyle( style: TextStyle(

@ -42,7 +42,7 @@ class _GoodsDetailsPageState extends State<GoodsDetailsPage> {
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(
padding: EdgeInsets.only(bottom: Screenutil.length(100)), padding: EdgeInsets.only(bottom: 100.w),
children: [ children: [
ProductSwiper(imageUrl: params), ProductSwiper(imageUrl: params),
ProductContent( ProductContent(

@ -108,16 +108,16 @@ class _ViewCommentsPageState extends State<ViewCommentsPage> {
return Container( return Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(29), top: 29.w,
left: Screenutil.length(32), left: 32.w,
bottom: Screenutil.length(40), bottom: 40.w,
), ),
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(25)), margin: EdgeInsets.only(bottom: 25.w),
child: Text( child: Text(
'按分类评价', '按分类评价',
style: TextStyle( style: TextStyle(
@ -127,8 +127,8 @@ class _ViewCommentsPageState extends State<ViewCommentsPage> {
), ),
), ),
Wrap( Wrap(
spacing: Screenutil.length(10), spacing: 10.w,
runSpacing: Screenutil.length(20), runSpacing: 20.w,
children: _commentsClassList children: _commentsClassList
.map((item) => InkWell( .map((item) => InkWell(
onTap: () { onTap: () {
@ -143,10 +143,10 @@ class _ViewCommentsPageState extends State<ViewCommentsPage> {
borderRadius: BorderRadius.all(Radius.circular(24)), borderRadius: BorderRadius.all(Radius.circular(24)),
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(24), left: 24.w,
right: Screenutil.length(23), right: 23.w,
top: Screenutil.length(9), top: 9.w,
bottom: Screenutil.length(10), bottom: 10.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(24)), borderRadius: BorderRadius.all(Radius.circular(24)),
@ -198,7 +198,7 @@ class _ViewCommentsPageState extends State<ViewCommentsPage> {
onLoading: _onLoading, onLoading: _onLoading,
enablePullUp: true, enablePullUp: true,
child: ListView.builder( child: ListView.builder(
padding: EdgeInsets.only(top: Screenutil.length(30)), padding: EdgeInsets.only(top: 30.w),
itemBuilder: (BuildContext context, int index) => Container( itemBuilder: (BuildContext context, int index) => Container(
color: Colors.white, color: Colors.white,
child: GoodsCommentsCard( child: GoodsCommentsCard(

@ -24,15 +24,15 @@ class _GoodsAppBarState extends State<GoodsAppBar> {
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
titleSpacing: 0, titleSpacing: 0,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
), ),
title: Container( title: Container(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(40), horizontal: 40.w,
vertical: Screenutil.length(15), vertical: 15.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfff3f3f3), color: Color(0xfff3f3f3),
@ -66,7 +66,7 @@ class _GoodsAppBarState extends State<GoodsAppBar> {
IconButton( IconButton(
icon: Icon( icon: Icon(
SimpleLineIcons.share, SimpleLineIcons.share,
size: Screenutil.size(40), size: 40.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
onPressed: () { onPressed: () {
@ -81,7 +81,7 @@ class _GoodsAppBarState extends State<GoodsAppBar> {
IconButton( IconButton(
icon: Icon( icon: Icon(
AntDesign.shoppingcart, AntDesign.shoppingcart,
size: Screenutil.size(40), size: 40.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
onPressed: () { onPressed: () {

@ -41,12 +41,12 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
child: Row( child: Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(12)), margin: EdgeInsets.only(right: 12.w),
child: ClipOval( child: ClipOval(
child: CachedImageWrapper( child: CachedImageWrapper(
url: imagePath, url: imagePath,
width: Screenutil.length(50), width: 50.w,
height: Screenutil.length(50), height: 50.w,
), ),
), ),
), ),
@ -60,7 +60,7 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(4)), SizedBox(height: 4.w),
Text( Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
@ -80,13 +80,13 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
List<String> contentImageList, List<String> contentImageList,
) { ) {
return Container( return Container(
margin: EdgeInsets.only(top: Screenutil.length(15)), margin: EdgeInsets.only(top: 15.w),
padding: EdgeInsets.only(bottom: Screenutil.length(20)), padding: EdgeInsets.only(bottom: 20.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(20)), margin: EdgeInsets.only(bottom: 20.w),
child: ExpandableText( child: ExpandableText(
text: content, text: content,
maxLines: 3, maxLines: 3,
@ -124,7 +124,7 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
size: BaseStyle.fontSize22, size: BaseStyle.fontSize22,
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'有用', '有用',
style: TextStyle( style: TextStyle(
@ -144,11 +144,11 @@ class _GoodsCommentsCardState extends State<GoodsCommentsCard> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only(bottom: Screenutil.length(32)), padding: EdgeInsets.only(bottom: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffd8d8d8), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffd8d8d8), width: 0.5)),

@ -12,12 +12,12 @@ class ProductDetail extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
color: Color(0xffffffff), color: Color(0xffffffff),
margin: EdgeInsets.only(top: Screenutil.length(30)), margin: EdgeInsets.only(top: 30.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(32), bottom: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -29,7 +29,7 @@ class ProductDetail extends StatelessWidget {
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(12)), SizedBox(height: 12.w),
Container( Container(
child: AspectRatio( child: AspectRatio(
aspectRatio: 1, aspectRatio: 1,

@ -18,13 +18,13 @@ class DetoCodePage extends StatelessWidget {
Text( Text(
'宁波华茂悦峰', '宁波华茂悦峰',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(40), color: Color(0xffffffff)), fontSize: 40.sp, color: Color(0xffffffff)),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
'1幢-1单元-702室', '1幢-1单元-702室',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(26), color: Color(0xffffffff)), fontSize: 26.sp, color: Color(0xffffffff)),
), ),
], ],
), ),
@ -35,7 +35,7 @@ class DetoCodePage extends StatelessWidget {
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
borderRadius: BorderRadius.all(Radius.circular(Screenutil.length(16))), borderRadius: BorderRadius.all(Radius.circular(16.w)),
boxShadow: <BoxShadow>[ boxShadow: <BoxShadow>[
BoxShadow( BoxShadow(
color: Colors.grey.withOpacity(0.2), color: Colors.grey.withOpacity(0.2),
@ -44,14 +44,14 @@ class DetoCodePage extends StatelessWidget {
], ],
), ),
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: Screenutil.length(75), horizontal: 75.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(16), bottom: 16.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(21), right: 21.w,
top: Screenutil.length(25), top: 25.w,
), ),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -64,39 +64,39 @@ class DetoCodePage extends StatelessWidget {
children: [ children: [
Icon( Icon(
AntDesign.contacts, AntDesign.contacts,
size: Screenutil.size(40), size: 40.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'马成泽先生', '马成泽先生',
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
], ],
), ),
], ],
), ),
SizedBox(height: Screenutil.length(13)), SizedBox(height: 13.w),
Text( Text(
'有限时间2020年6月30日', '有限时间2020年6月30日',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(26), fontSize: 26.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
SizedBox(height: Screenutil.length(23)), SizedBox(height: 23.w),
DottedLine(color: Color(0xfff5f5f5)), DottedLine(color: Color(0xfff5f5f5)),
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
bottom: Screenutil.length(38), bottom: 38.w,
), ),
height: Screenutil.length(389), height: 389.w,
alignment: Alignment.center, alignment: Alignment.center,
child: Column( child: Column(
children: [ children: [
@ -104,27 +104,27 @@ class DetoCodePage extends StatelessWidget {
'020-598-230', '020-598-230',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(11)), SizedBox(height: 11.w),
QrImage( QrImage(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
data: '智慧社区开门码', data: '智慧社区开门码',
size: Screenutil.length(260), size: 260.w,
), ),
], ],
), ),
), ),
DottedLine(color: Color(0xfff5f5f5)), DottedLine(color: Color(0xfff5f5f5)),
SizedBox(height: Screenutil.length(16)), SizedBox(height: 16.w),
Container( Container(
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'出户时,请出示此证给门岗', '出户时,请出示此证给门岗',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -149,9 +149,9 @@ class DetoCodePage extends StatelessWidget {
children: [ children: [
Column( Column(
children: [ children: [
SizedBox(height: Screenutil.length(192) - kToolbarHeight), SizedBox(height: 192.w - kToolbarHeight),
_header(), _header(),
SizedBox(height: Screenutil.length(32)), SizedBox(height: 32.w),
_card(), _card(),
], ],
), ),

@ -32,8 +32,8 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
Widget _houseAddress(String title, subtitle) { Widget _houseAddress(String title, subtitle) {
return Container( return Container(
padding: EdgeInsets.only(bottom: Screenutil.length(24)), padding: EdgeInsets.only(bottom: 24.w),
margin: EdgeInsets.only(bottom: Screenutil.length(40)), margin: EdgeInsets.only(bottom: 40.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)),
@ -42,11 +42,11 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(32)), margin: EdgeInsets.only(bottom: 32.w),
child: Text( child: Text(
'出户房屋', '出户房屋',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -56,11 +56,11 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(42)), margin: EdgeInsets.only(right: 42.w),
child: Image.asset( child: Image.asset(
AssetsImage.HOUSEATTESTATION, AssetsImage.HOUSEATTESTATION,
height: Screenutil.length(59), height: 59.w,
width: Screenutil.length(59), width: 59.w,
), ),
), ),
Column( Column(
@ -70,16 +70,16 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
title, title,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
) )
@ -95,7 +95,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
Widget _inkWellCheckbox() { Widget _inkWellCheckbox() {
return InkWell( return InkWell(
child: Container( child: Container(
padding: EdgeInsets.only(bottom: Screenutil.length(24)), padding: EdgeInsets.only(bottom: 24.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
@ -112,7 +112,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
child: Text( child: Text(
'是否需要物业提供搬家公司联系方式', '是否需要物业提供搬家公司联系方式',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -125,8 +125,8 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
Widget _checkCard(String title, List<Map<String, dynamic>> list) { Widget _checkCard(String title, List<Map<String, dynamic>> list) {
return Container( return Container(
height: Screenutil.length(96), height: 96.w,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(28)), padding: EdgeInsets.symmetric(vertical: 28.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)),
@ -134,11 +134,11 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
child: Row( child: Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(30)), margin: EdgeInsets.only(right: 30.w),
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
), ),
CommonRadio( CommonRadio(
@ -172,9 +172,9 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
children: [ children: [
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(32), top: 32.w,
), ),
child: ListView( child: ListView(
children: [ children: [
@ -186,12 +186,12 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
_inkWellCheckbox(), _inkWellCheckbox(),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(54), top: 54.w,
bottom: Screenutil.length(24)), bottom: 24.w),
child: Text( child: Text(
'添加图片信息(0/9)', '添加图片信息(0/9)',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -18,8 +18,8 @@ class _CommonPickerState extends State<CommonPicker> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
height: Screenutil.length(96), height: 96.w,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(28)), padding: EdgeInsets.symmetric(vertical: 28.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffeeeeee), width: 0.5)),
@ -27,11 +27,11 @@ class _CommonPickerState extends State<CommonPicker> {
child: Row( child: Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(30)), margin: EdgeInsets.only(right: 30.w),
child: Text( child: Text(
widget.title, widget.title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
), ),
InkWell( InkWell(
@ -62,16 +62,16 @@ class _CommonPickerState extends State<CommonPicker> {
title: Text( title: Text(
"物品名称", "物品名称",
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
confirmTextStyle: TextStyle( confirmTextStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xffffc40c), color: Color(0xffffc40c),
), ),
cancelTextStyle: TextStyle( cancelTextStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
onConfirm: (Picker picker, List value) { onConfirm: (Picker picker, List value) {
@ -85,21 +85,21 @@ class _CommonPickerState extends State<CommonPicker> {
} }
}, },
child: Container( child: Container(
width: Screenutil.length(538), width: 538.w,
height: Screenutil.length(40), height: 40.w,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
pickerData, pickerData,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
Icon( Icon(
AntDesign.right, AntDesign.right,
color: Color(0xff999999), color: Color(0xff999999),
size: Screenutil.size(32), size: 32.sp,
), ),
], ],
), ),

@ -19,17 +19,17 @@ class _CommonRadioState extends State<CommonRadio> {
fun(index); fun(index);
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: Screenutil.length(20)), margin: EdgeInsets.only(left: 20.w),
child: Row( child: Row(
children: [ children: [
Icon( Icon(
isCheck isCheck
? Icons.radio_button_checked ? Icons.radio_button_checked
: Icons.radio_button_unchecked, : Icons.radio_button_unchecked,
size: Screenutil.length(32), size: 32.w,
color: isCheck ? BaseStyle.colorffc40c : BaseStyle.color979797, color: isCheck ? BaseStyle.colorffc40c : BaseStyle.color979797,
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
title, title,
style: TextStyle( style: TextStyle(

@ -105,7 +105,7 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
body: Stack( body: Stack(
children: [ children: [
Padding( Padding(
padding: EdgeInsets.only(bottom: Screenutil.length(98)), padding: EdgeInsets.only(bottom: 98.w),
child: RefreshConfiguration( child: RefreshConfiguration(
hideFooterWhenNotFull: true, hideFooterWhenNotFull: true,
child: SmartRefresher( child: SmartRefresher(

@ -14,9 +14,9 @@ class GoodsInfoCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -39,13 +39,13 @@ class GoodsInfoCard extends StatelessWidget {
], ],
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(25), top: 25.w,
left: Screenutil.length(24), left: 24.w,
right: Screenutil.length(24)), right: 24.w),
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.only(bottom: Screenutil.length(24)), padding: EdgeInsets.only(bottom: 24.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide( bottom: BorderSide(
@ -58,14 +58,14 @@ class GoodsInfoCard extends StatelessWidget {
'出户信息', '出户信息',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
Text( Text(
status, status,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)) color: Color(0xff333333))
), ),
], ],
@ -73,8 +73,8 @@ class GoodsInfoCard extends StatelessWidget {
), ),
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: Screenutil.length(33), bottom: 33.w,
top: Screenutil.length(16), top: 16.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -85,20 +85,20 @@ class GoodsInfoCard extends StatelessWidget {
children: detoInfoList children: detoInfoList
.map( .map(
(item) => Container( (item) => Container(
padding: EdgeInsets.only(top: Screenutil.length(8)), padding: EdgeInsets.only(top: 8.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
item['title'], item['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
Text( Text(
item['content'], item['content'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
], ],
@ -110,18 +110,18 @@ class GoodsInfoCard extends StatelessWidget {
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(19), top: 19.w,
bottom: Screenutil.length(30), bottom: 30.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(25)), margin: EdgeInsets.only(bottom: 25.w),
child: Text( child: Text(
'图片信息', '图片信息',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
), ),

@ -28,7 +28,7 @@ class GoodsInfoCardButton extends StatelessWidget {
title: Text( title: Text(
url, url,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -37,7 +37,7 @@ class GoodsInfoCardButton extends StatelessWidget {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -50,7 +50,7 @@ class GoodsInfoCardButton extends StatelessWidget {
'呼叫', '呼叫',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -75,7 +75,7 @@ class GoodsInfoCardButton extends StatelessWidget {
bottomRight: Radius.circular(6), bottomRight: Radius.circular(6),
), ),
), ),
height: Screenutil.length(96), height: 96.w,
child: Row( child: Row(
children: _listButton children: _listButton
.asMap() .asMap()
@ -97,7 +97,7 @@ class GoodsInfoCardButton extends StatelessWidget {
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26.5), vertical: 26.5.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -112,17 +112,17 @@ class GoodsInfoCardButton extends StatelessWidget {
children: [ children: [
Icon( Icon(
_listButton[index]['icon'], _listButton[index]['icon'],
size: Screenutil.size(36), size: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
Container( Container(
margin: margin:
EdgeInsets.only(left: Screenutil.length(14)), EdgeInsets.only(left: 14.w),
child: Text( child: Text(
_listButton[index]['title'], _listButton[index]['title'],
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -26,7 +26,7 @@ class ImageHorizontalList extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
height: Screenutil.length(184), height: 184.w,
child: ListView.builder( child: ListView.builder(
shrinkWrap: true, shrinkWrap: true,
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
@ -34,7 +34,7 @@ class ImageHorizontalList extends StatelessWidget {
return AspectRatio( return AspectRatio(
aspectRatio: 1, aspectRatio: 1,
child: Container( child: Container(
margin: EdgeInsets.only(right: Screenutil.length(16)), margin: EdgeInsets.only(right: 16.w),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
child: GalleryExampleItemThumbnail( child: GalleryExampleItemThumbnail(

@ -60,15 +60,15 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
Container _goodsCard(String imagePath, title, int goodsNum) { Container _goodsCard(String imagePath, title, int goodsNum) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(12), top: 12.w,
left: Screenutil.length(10), left: 10.w,
right: Screenutil.length(10), right: 10.w,
bottom: Screenutil.length(17), bottom: 17.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -79,12 +79,12 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(20)), margin: EdgeInsets.only(right: 20.w),
child: ClipRRect( child: ClipRRect(
child: CachedImageWrapper( child: CachedImageWrapper(
url: imagePath, url: imagePath,
width: Screenutil.length(160), width: 160.w,
height: Screenutil.length(120), height: 120.w,
), ),
), ),
), ),
@ -95,15 +95,15 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
Text( Text(
'物品名称:${title}', '物品名称:${title}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff4a4b51), color: Color(0xff4a4b51),
), ),
), ),
SizedBox(height: Screenutil.length(20)), SizedBox(height: 20.w),
Text( Text(
'数量剩余:${goodsNum}', '数量剩余:${goodsNum}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),

@ -88,17 +88,17 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
return InkWell( return InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
width: Screenutil.length(120), width: 120.w,
height: Screenutil.length(44), height: 44.w,
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(7)), padding: EdgeInsets.symmetric(vertical: 7.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xff2a2a2a), color: Color(0xff2a2a2a),
borderRadius: BorderRadius.all(Radius.circular(20)), borderRadius: BorderRadius.all(Radius.circular(20)),
), ),
child: Text( child: Text(
'报损', '报损',
style: TextStyle(fontSize: Screenutil.size(22), color: Colors.white), style: TextStyle(fontSize: 22.sp, color: Colors.white),
), ),
), ),
); );
@ -108,14 +108,14 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
String title, borrowTime, timeLength, status, int goodsNum) { String title, borrowTime, timeLength, status, int goodsNum) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
left: Screenutil.length(38), left: 38.w,
right: Screenutil.length(34), right: 34.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -133,49 +133,49 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
Text( Text(
'物品名称:${title}', '物品名称:${title}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff4a4b51), color: Color(0xff4a4b51),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(16)), margin: EdgeInsets.only(top: 16.w),
child: Text( child: Text(
'借还数量:${goodsNum}', '借还数量:${goodsNum}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(16)), margin: EdgeInsets.only(top: 16.w),
child: Text( child: Text(
'借用时间: ${borrowTime}', '借用时间: ${borrowTime}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(16)), margin: EdgeInsets.only(top: 16.w),
child: Text( child: Text(
'借用时长: ${timeLength}', '借用时长: ${timeLength}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(16)), margin: EdgeInsets.only(top: 16.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
'借用状态: ${status}', '借用状态: ${status}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -183,15 +183,15 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(12)), SizedBox(height: 12.w),
Divider(color: Color(0xfff9f9f9)), Divider(color: Color(0xfff9f9f9)),
status == '未还' status == '未还'
? Container( ? Container(
margin: EdgeInsets.only(bottom: Screenutil.length(9)), margin: EdgeInsets.only(bottom: 9.w),
child: Text( child: Text(
'温馨提示:您的物品已借用${timeLength}天,如果用完,请及时归还', '温馨提示:您的物品已借用${timeLength}天,如果用完,请及时归还',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(22), fontSize: 22.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),

@ -98,7 +98,7 @@ class _HomePageState extends State<HomePage>
children: [ children: [
HomeSearch(), HomeSearch(),
HomeSwiper(), HomeSwiper(),
SizedBox(height: Screenutil.length(100)), SizedBox(height: 100.w),
ContainerComment( ContainerComment(
radius: 8, radius: 8,
customWidget: GridButton( customWidget: GridButton(
@ -136,7 +136,7 @@ class _HomePageState extends State<HomePage>
), ),
], ],
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
Column( Column(
children: [ children: [
HomeTagBar( HomeTagBar(
@ -162,7 +162,7 @@ class _HomePageState extends State<HomePage>
), ),
], ],
), ),
SizedBox(height: Screenutil.length(30)), SizedBox(height: 30.w),
HomeTagBar( HomeTagBar(
title: '社区商城', title: '社区商城',
tag: '团购', tag: '团购',
@ -174,9 +174,9 @@ class _HomePageState extends State<HomePage>
), ),
SliverPadding( SliverPadding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
sliver: _shopList.length == 0 sliver: _shopList.length == 0
? SliverToBoxAdapter(child: GoodsCardSkeleton()) ? SliverToBoxAdapter(child: GoodsCardSkeleton())

@ -42,14 +42,14 @@ class _HomeAppBarState extends State<HomeAppBar> {
'皇冠花园二期', '皇冠花园二期',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
centerTitle: true, centerTitle: true,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
leading: Container( leading: Container(
margin: EdgeInsets.only(left: Screenutil.length(32)), margin: EdgeInsets.only(left: 32.w),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -58,14 +58,14 @@ class _HomeAppBarState extends State<HomeAppBar> {
'深圳', '深圳',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
Text( Text(
'阴 27℃', '阴 27℃',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(20), fontSize: 20.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
) )

@ -35,35 +35,35 @@ class _HomeCardState extends State<HomeCard> {
Widget _countDown() { Widget _countDown() {
return Container( return Container(
width: Screenutil.length(638), width: 638.w,
color: Color(0xff333333).withOpacity(0.8), color: Color(0xff333333).withOpacity(0.8),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(24), left: 24.w,
top: Screenutil.length(11), top: 11.w,
bottom: Screenutil.length(12), bottom: 12.w,
), ),
child: Text( child: Text(
'剩余时间:09天13时46分', '剩余时间:09天13时46分',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xffffffff), color: Color(0xffffffff),
fontSize: Screenutil.size(24)), fontSize: 24.sp),
), ),
), ),
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
right: Screenutil.length(24), right: 24.w,
top: Screenutil.length(7), top: 7.w,
bottom: Screenutil.length(7), bottom: 7.w,
), ),
child: Text( child: Text(
'¥99.9', '¥99.9',
style: TextStyle( style: TextStyle(
color: Color(0xffff8200), fontSize: Screenutil.size(36)), color: Color(0xffff8200), fontSize: 36.sp),
), ),
), ),
], ],
@ -109,21 +109,21 @@ class _HomeCardState extends State<HomeCard> {
} }
}, },
child: Container( child: Container(
height: Screenutil.length(44), height: 44.w,
width: Screenutil.length(120), width: 120.w,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(22))), BorderRadius.all(Radius.circular(22.w)),
), ),
padding: EdgeInsets.symmetric(vertical: Screenutil.length(8)), padding: EdgeInsets.symmetric(vertical: 8.w),
child: Text( child: Text(
buttonName, buttonName,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xff4a4b51), color: Color(0xff4a4b51),
fontSize: Screenutil.size(20)), fontSize: 20.sp),
), ),
), ),
); );
@ -134,21 +134,21 @@ class _HomeCardState extends State<HomeCard> {
return Container( return Container(
color: Colors.white, color: Colors.white,
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: Screenutil.length(32), horizontal: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(24), left: 24.w,
right: Screenutil.length(24), right: 24.w,
bottom: Screenutil.length(40), bottom: 40.w,
), ),
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(Screenutil.length(8))), borderRadius: BorderRadius.all(Radius.circular(8.w)),
border: border:
Border.all(color: Color(0xffe8e8e8), width: Screenutil.length(2)), Border.all(color: Color(0xffe8e8e8), width: 2.w),
), ),
padding: EdgeInsets.only(bottom: Screenutil.length(24)), padding: EdgeInsets.only(bottom: 24.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -157,13 +157,13 @@ class _HomeCardState extends State<HomeCard> {
Container( Container(
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(Screenutil.length(8)), topLeft: Radius.circular(8.w),
topRight: Radius.circular(Screenutil.length(8)), topRight: Radius.circular(8.w),
), ),
child: CachedImageWrapper( child: CachedImageWrapper(
url: widget.imagePath, url: widget.imagePath,
width: Screenutil.length(638), width: 638.w,
height: Screenutil.length(210), height: 210.w,
), ),
), ),
), ),
@ -171,22 +171,22 @@ class _HomeCardState extends State<HomeCard> {
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(16), top: 16.w,
left: Screenutil.length(24), left: 24.w,
), ),
child: Text( child: Text(
widget.title, widget.title,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xff4a4b51), color: Color(0xff4a4b51),
fontSize: Screenutil.size(28)), fontSize: 28.sp),
), ),
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(16), top: 16.w,
left: Screenutil.length(24), left: 24.w,
right: Screenutil.length(24), right: 24.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -196,7 +196,7 @@ class _HomeCardState extends State<HomeCard> {
children: [ children: [
RichText( RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: Screenutil.size(24)), style: TextStyle(fontSize: 24.sp),
children: <InlineSpan>[ children: <InlineSpan>[
TextSpan( TextSpan(
text: widget.isActivity ? '地点:' : '原产地区:', text: widget.isActivity ? '地点:' : '原产地区:',
@ -208,10 +208,10 @@ class _HomeCardState extends State<HomeCard> {
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(8)), margin: EdgeInsets.only(top: 8.w),
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: Screenutil.size(24)), style: TextStyle(fontSize: 24.sp),
children: <InlineSpan>[ children: <InlineSpan>[
TextSpan( TextSpan(
text: widget.isActivity ? '活动时间:' : '预计到货:', text: widget.isActivity ? '活动时间:' : '预计到货:',
@ -232,17 +232,17 @@ class _HomeCardState extends State<HomeCard> {
widget.isActivity widget.isActivity
? Container( ? Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(16), top: 16.w,
right: Screenutil.length(24), right: 24.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(left: Screenutil.length(80)), margin: EdgeInsets.only(left: 80.w),
child: ImageStack( child: ImageStack(
imageList: images, imageList: images,
imageRadius: Screenutil.size(44), imageRadius: 44.sp,
imageCount: 3, imageCount: 3,
imageBorderWidth: 1, imageBorderWidth: 1,
totalCount: 3, totalCount: 3,

@ -23,39 +23,39 @@ class _HomeSearchState extends State<HomeSearch> {
), ),
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(9), top: 9.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(17), bottom: 17.w,
), ),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
showSearch(context: context, delegate: searchBarDelegate()); showSearch(context: context, delegate: searchBarDelegate());
}, },
child: Container( child: Container(
width: Screenutil.length(686), width: 686.w,
height: Screenutil.length(72), height: 72.w,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(16), top: 16.w,
bottom: Screenutil.length(16), bottom: 16.w,
left: Screenutil.length(24), left: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(36))), BorderRadius.all(Radius.circular(36.w)),
), ),
child: Row(children: [ child: Row(children: [
Icon( Icon(
AntDesign.search1, AntDesign.search1,
color: Color(0xff999999), color: Color(0xff999999),
size: Screenutil.size(28), size: 28.sp,
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: 16.w),
Text( Text(
'搜索商品、活动、帖子、应用', '搜索商品、活动、帖子、应用',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
) )

@ -23,7 +23,7 @@ class _HomeSwiperState extends State<HomeSwiper> {
overflow: Overflow.visible, overflow: Overflow.visible,
children: [ children: [
Container( Container(
height: Screenutil.length(181), height: 181.w,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
@ -33,10 +33,10 @@ class _HomeSwiperState extends State<HomeSwiper> {
), ),
), ),
Positioned( Positioned(
top: Screenutil.length(17), top: 17.w,
left: 0, left: 0,
right: 0, right: 0,
bottom: -Screenutil.length(76), bottom: -76.w,
child: Swiper( child: Swiper(
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return Container( return Container(
@ -51,8 +51,8 @@ class _HomeSwiperState extends State<HomeSwiper> {
), ),
child: CachedImageWrapper( child: CachedImageWrapper(
url: imageList[index], url: imageList[index],
height: Screenutil.length(240), height: 240.w,
width: Screenutil.length(686), width: 686.w,
), ),
); );
}, },
@ -74,9 +74,9 @@ class _HomeSwiperState extends State<HomeSwiper> {
builder: DotSwiperPaginationBuilder( builder: DotSwiperPaginationBuilder(
activeColor: Color(0xffFEC200), activeColor: Color(0xffFEC200),
color: Colors.white, color: Colors.white,
size: Screenutil.length(15), size: 15.w,
activeSize: Screenutil.length(20), activeSize: 20.w,
space: Screenutil.length(10), space: 10.w,
), ),
), ),
autoplayDelay: 5000, autoplayDelay: 5000,

@ -22,9 +22,9 @@ class _HomeTagBarState extends State<HomeTagBar> {
return Container( return Container(
color: widget.isShowTitle ? Colors.transparent : Colors.white, color: widget.isShowTitle ? Colors.transparent : Colors.white,
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: Screenutil.length(32), horizontal: 32.w,
), ),
padding: EdgeInsets.all(Screenutil.length(24)), padding: EdgeInsets.all(24.w),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Row( Row(
@ -34,11 +34,11 @@ class _HomeTagBarState extends State<HomeTagBar> {
children: [ children: [
widget.isShowImage widget.isShowImage
? Container( ? Container(
margin: EdgeInsets.only(right: Screenutil.length(24)), margin: EdgeInsets.only(right: 24.w),
child: Image.asset( child: Image.asset(
AssetsImage.NOTIFICATION, AssetsImage.NOTIFICATION,
height: Screenutil.length(38), height: 38.w,
width: Screenutil.length(38), width: 38.w,
), ),
) )
: SizedBox(), : SizedBox(),
@ -46,8 +46,8 @@ class _HomeTagBarState extends State<HomeTagBar> {
widget.title, widget.title,
style: TextStyle( style: TextStyle(
fontSize: widget.isShowImage fontSize: widget.isShowImage
? Screenutil.size(28) ? 28.sp
: Screenutil.size(32), : 32.sp,
fontWeight: widget.isShowImage fontWeight: widget.isShowImage
? FontWeight.normal ? FontWeight.normal
: FontWeight.w600, : FontWeight.w600,
@ -64,13 +64,13 @@ class _HomeTagBarState extends State<HomeTagBar> {
'更多${widget.tag}', '更多${widget.tag}',
style: TextStyle( style: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(20)), fontSize: 20.sp),
), ),
SizedBox(width: Screenutil.length(8)), SizedBox(width: 8.w),
Icon( Icon(
AntDesign.right, AntDesign.right,
color: Color(0xff999999), color: Color(0xff999999),
size: Screenutil.size(20), size: 20.sp,
), ),
]), ]),
), ),
@ -79,7 +79,7 @@ class _HomeTagBarState extends State<HomeTagBar> {
widget.isShowImage widget.isShowImage
? SizedBox() ? SizedBox()
: Positioned( : Positioned(
top: Screenutil.length(30), top: 30.w,
left: 0, left: 0,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@ -91,8 +91,8 @@ class _HomeTagBarState extends State<HomeTagBar> {
blurRadius: 10.0), blurRadius: 10.0),
], ],
), ),
width: Screenutil.length(126), width: 126.w,
height: Screenutil.length(8)), height: 8.w),
) )
], ],
), ),

@ -16,9 +16,9 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
Widget _input() { Widget _input() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(22), left: 22.w,
right: Screenutil.length(35)), right: 35.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
border: Border.all(color: Color(0xffd4cfbe), width: 1.0), border: Border.all(color: Color(0xffd4cfbe), width: 1.0),
@ -26,7 +26,7 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
child: TextFormField( child: TextFormField(
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
controller: _thingsContent, controller: _thingsContent,
@ -35,8 +35,8 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
top: Screenutil.length(0), top: 0.w,
bottom: Screenutil.length(0), bottom: 0.w,
), ),
hintText: '', hintText: '',
border: InputBorder.none, //线 border: InputBorder.none, //线
@ -44,7 +44,7 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
filled: true, filled: true,
hintStyle: TextStyle( hintStyle: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(28), fontSize: 28.sp,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
), ),
@ -56,21 +56,21 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
return InkWell( return InkWell(
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(96), height: 96.w,
width: Screenutil.length(686), width: 686.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26), vertical: 26.w,
), ),
margin: EdgeInsets.only(top: Screenutil.length(40)), margin: EdgeInsets.only(top: 40.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(48)))), BorderRadius.all(Radius.circular(48.w))),
child: Text( child: Text(
'确认提交', '确认提交',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
), ),
@ -89,7 +89,7 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
children: [ children: [
SingleChildScrollView( SingleChildScrollView(
child: GestureDetector( child: GestureDetector(
@ -102,12 +102,12 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
children: [ children: [
Container( Container(
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
vertical: Screenutil.length(48), vertical: 48.w,
), ),
child: Text( child: Text(
'您对园区的规约、管理、环境、活动等各方面有何宝贵建议,请写在下方为园区建设贡献一份力量。', '您对园区的规约、管理、环境、活动等各方面有何宝贵建议,请写在下方为园区建设贡献一份力量。',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -42,7 +42,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
title: Text( title: Text(
'0574-88478909', '0574-88478909',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -51,7 +51,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
child: Text( child: Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -64,7 +64,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
'呼叫', '呼叫',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -97,12 +97,12 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
color: color, color: color,
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26.5), vertical: 26.5.w,
), ),
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: fontColor, color: fontColor,
), ),
), ),
@ -115,7 +115,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
bottom: 0, bottom: 0,
child: Container( child: Container(
height: height:
Screenutil.length(98) + MediaQuery.of(context).viewPadding.bottom, 98.w + MediaQuery.of(context).viewPadding.bottom,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Row( child: Row(
children: _listBottom children: _listBottom

@ -65,7 +65,7 @@ class _StaffListState extends State<StaffList> {
TextStyle _subStyle() { TextStyle _subStyle() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
); );
} }
@ -73,11 +73,11 @@ class _StaffListState extends State<StaffList> {
Positioned _positionedTag(String tag) { Positioned _positionedTag(String tag) {
return Positioned( return Positioned(
top: 0, top: 0,
right: Screenutil.length(20), right: 20.w,
child: Container( child: Container(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(21.5), horizontal: 21.5.w,
vertical: Screenutil.length(5.5)), vertical: 5.5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfffff3cd), color: Color(0xfffff3cd),
border: Border.all(color: Color(0xffffc40c), width: 0.5), border: Border.all(color: Color(0xffffc40c), width: 0.5),
@ -85,7 +85,7 @@ class _StaffListState extends State<StaffList> {
child: Text( child: Text(
tag, tag,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -97,14 +97,14 @@ class _StaffListState extends State<StaffList> {
String tenure, String post, String tag) { String tenure, String post, String tag) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(20), top: 20.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(20), left: 20.w,
top: Screenutil.length(20), top: 20.w,
bottom: Screenutil.length(20), bottom: 20.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
@ -116,10 +116,10 @@ class _StaffListState extends State<StaffList> {
children: [ children: [
CachedImageWrapper( CachedImageWrapper(
url: imagePath, url: imagePath,
height: Screenutil.length(150), height: 150.w,
width: Screenutil.length(150), width: 150.w,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -127,21 +127,21 @@ class _StaffListState extends State<StaffList> {
name, name,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'住址:${address}', '住址:${address}',
style: _subStyle(), style: _subStyle(),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'任职期限:${tenure}', '任职期限:${tenure}',
style: _subStyle(), style: _subStyle(),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
'从事岗位:${post}', '从事岗位:${post}',
style: _subStyle(), style: _subStyle(),

@ -37,7 +37,7 @@ class _InvoicePageState extends State<InvoicePage> {
elevation: 0, elevation: 0,
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -47,7 +47,7 @@ class _InvoicePageState extends State<InvoicePage> {
'开具发票', '开具发票',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -57,10 +57,10 @@ class _InvoicePageState extends State<InvoicePage> {
Container _containerInvoiceDetailCheck() { Container _containerInvoiceDetailCheck() {
return Container( return Container(
color: Colors.white, color: Colors.white,
height: Screenutil.length(96), height: 96.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32), horizontal: 32.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -72,14 +72,14 @@ class _InvoicePageState extends State<InvoicePage> {
Text( Text(
'发票内容', '发票内容',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(width: Screenutil.length(6)), SizedBox(width: 6.w),
Icon( Icon(
AntDesign.exclamationcircleo, AntDesign.exclamationcircleo,
size: Screenutil.size(20), size: 20.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
], ],
@ -100,18 +100,18 @@ class _InvoicePageState extends State<InvoicePage> {
onTap: () {}, onTap: () {},
child: Container( child: Container(
color: Color(0xffffc40c), color: Color(0xffffc40c),
height: Screenutil.length(85), height: 85.w,
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: Screenutil.length(43), horizontal: 43.w,
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(20), vertical: 20.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'确认', '确认',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -132,14 +132,14 @@ class _InvoicePageState extends State<InvoicePage> {
Text( Text(
'增值税电子普票', '增值税电子普票',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(width: Screenutil.length(12)), SizedBox(width: 12.w),
Icon( Icon(
AntDesign.right, AntDesign.right,
size: Screenutil.size(20), size: 20.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
], ],
@ -165,7 +165,7 @@ class _InvoicePageState extends State<InvoicePage> {
}, },
title: '个人/事业单位', title: '个人/事业单位',
), ),
SizedBox(width: Screenutil.length(12)), SizedBox(width: 12.w),
RoundCheckBox( RoundCheckBox(
value: _checkRise[1], value: _checkRise[1],
onChanged: () { onChanged: () {
@ -200,10 +200,10 @@ class _InvoicePageState extends State<InvoicePage> {
children: _listHeader children: _listHeader
.map((item) => Container( .map((item) => Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(77), left: 77.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(28), top: 28.w,
// bottom: Screenutil.length(28), // bottom: 28.w,
), ),
child: Column( child: Column(
children: [ children: [
@ -213,14 +213,14 @@ class _InvoicePageState extends State<InvoicePage> {
Text( Text(
item['title'], item['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
item['rightWidget'] item['rightWidget']
], ],
), ),
SizedBox(height: Screenutil.length(28)), SizedBox(height: 28.w),
Divider(height: 1), Divider(height: 1),
], ],
), ),
@ -235,7 +235,7 @@ class _InvoicePageState extends State<InvoicePage> {
appBar: _appBar(), appBar: _appBar(),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: Screenutil.length(1334), height: 1334.w,
child: GestureDetector( child: GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
@ -251,9 +251,9 @@ class _InvoicePageState extends State<InvoicePage> {
children: [InvoiceInput(isEnterprise: isEnterprise)], children: [InvoiceInput(isEnterprise: isEnterprise)],
), ),
), ),
SizedBox(height: Screenutil.length(66)), SizedBox(height: 66.w),
_containerInvoiceDetailCheck(), _containerInvoiceDetailCheck(),
SizedBox(height: Screenutil.length(92)), SizedBox(height: 92.w),
_containerSubmit(), _containerSubmit(),
], ],
), ),

@ -36,10 +36,10 @@ class _InvoiceInputState extends State<InvoiceInput> {
return listInput return listInput
.map((item) => Container( .map((item) => Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(77), left: 77.w,
right: Screenutil.length(32), right: 32.w,
top: Screenutil.length(28), top: 28.w,
// bottom: Screenutil.length(28), // bottom: 28.w,
), ),
child: Column( child: Column(
children: [ children: [
@ -49,7 +49,7 @@ class _InvoiceInputState extends State<InvoiceInput> {
Text( Text(
item['title'], item['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -61,15 +61,15 @@ class _InvoiceInputState extends State<InvoiceInput> {
// ] // ]
// : [], // : [],
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle(fontSize: Screenutil.size(28)), style: TextStyle(fontSize: 28.sp),
controller: item['controller'], controller: item['controller'],
onChanged: (String value) {}, onChanged: (String value) {},
textAlign: TextAlign.end, textAlign: TextAlign.end,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
top: Screenutil.length(0), top: 0.w,
bottom: Screenutil.length(0), bottom: 0.w,
), ),
hintText: item['hintText'], hintText: item['hintText'],
border: InputBorder.none, //线 border: InputBorder.none, //线
@ -77,13 +77,13 @@ class _InvoiceInputState extends State<InvoiceInput> {
filled: true, filled: true,
hintStyle: TextStyle( hintStyle: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(24)), fontSize: 24.sp),
), ),
), ),
), ),
], ],
), ),
SizedBox(height: Screenutil.length(28)), SizedBox(height: 28.w),
Divider(height: 1), Divider(height: 1),
], ],
), ),

@ -19,7 +19,7 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
), ),
@ -27,7 +27,7 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
subtitle, subtitle,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -48,21 +48,21 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32)), right: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(20), horizontal: 20.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
child: Column( child: Column(
children: [ children: [
_cardList('收费项目', '公共能耗费'), _cardList('收费项目', '公共能耗费'),
SizedBox(height: Screenutil.length(30)), SizedBox(height: 30.w),
_cardList('收费地址', '深蓝公寓 1幢1单元306室'), _cardList('收费地址', '深蓝公寓 1幢1单元306室'),
], ],
), ),

@ -19,7 +19,7 @@ class BillCard extends StatelessWidget {
Container _billItem(String title, value) { Container _billItem(String title, value) {
return Container( return Container(
margin: EdgeInsets.only(top: Screenutil.length(30)), margin: EdgeInsets.only(top: 30.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -47,15 +47,15 @@ class BillCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(20), left: 20.w,
right: Screenutil.length(20), right: 20.w,
bottom: Screenutil.length(32), bottom: 32.w,
top: Screenutil.length(2), top: 2.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,

@ -31,7 +31,7 @@ class _LifePayInfoPageState extends State<LifePayInfoPage> {
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(
padding: EdgeInsets.only(bottom: Screenutil.length(130)), padding: EdgeInsets.only(bottom: 130.w),
children: [ children: [
DetailsCard(fun: billRouter), DetailsCard(fun: billRouter),
], ],

@ -16,8 +16,8 @@ class _DetailsCardState extends State<DetailsCard> {
Container _detailHeader() { Container _detailHeader() {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
bottom: Screenutil.length(18), bottom: 18.w,
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -47,7 +47,7 @@ class _DetailsCardState extends State<DetailsCard> {
return InkWell( return InkWell(
onTap: fun, onTap: fun,
child:Container( child:Container(
margin: EdgeInsets.only(top: Screenutil.length(32)), margin: EdgeInsets.only(top: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -56,9 +56,9 @@ class _DetailsCardState extends State<DetailsCard> {
Icon( Icon(
Icons.radio_button_unchecked, Icons.radio_button_unchecked,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(40), size: 40.w,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Text( Text(
'2019上半年', '2019上半年',
style: TextStyle( style: TextStyle(
@ -78,11 +78,11 @@ class _DetailsCardState extends State<DetailsCard> {
color: Color(0xfffc361d), color: Color(0xfffc361d),
), ),
), ),
SizedBox(width: Screenutil.length(28)), SizedBox(width: 28.w),
Icon( Icon(
AntDesign.right, AntDesign.right,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(30), size: 30.w,
), ),
], ],
), ),
@ -96,14 +96,14 @@ class _DetailsCardState extends State<DetailsCard> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(32), bottom: 32.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,

@ -33,18 +33,18 @@ class _LifePayPageState extends State<LifePayPage> {
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(
padding: EdgeInsets.only(bottom: Screenutil.length(130)), padding: EdgeInsets.only(bottom: 130.w),
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff666666)), color: Color(0xff666666)),
children: <InlineSpan>[ children: <InlineSpan>[
TextSpan( TextSpan(

@ -67,13 +67,13 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(34), top: 34.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: Screenutil.size(24)), style: TextStyle(fontSize: 24.sp),
children: <InlineSpan>[ children: <InlineSpan>[
TextSpan( TextSpan(
text: '如果有疑问,请联系物业客服', text: '如果有疑问,请联系物业客服',

@ -85,7 +85,7 @@ class RecordCard extends StatelessWidget {
Container _billItem(String title, value, TextStyle titleStyle, valueStyle, Container _billItem(String title, value, TextStyle titleStyle, valueStyle,
double top, bool isShow, Function fun) { double top, bool isShow, Function fun) {
return Container( return Container(
margin: EdgeInsets.only(top: Screenutil.length(top)), margin: EdgeInsets.only(top: top.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -103,11 +103,11 @@ class RecordCard extends StatelessWidget {
style: valueStyle, style: valueStyle,
), ),
Container( Container(
margin: EdgeInsets.only(left: Screenutil.length(24)), margin: EdgeInsets.only(left: 24.w),
child: Icon( child: Icon(
AntDesign.right, AntDesign.right,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(30), size: 30.w,
), ),
), ),
], ],
@ -126,15 +126,15 @@ class RecordCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(20), left: 20.w,
right: Screenutil.length(20), right: 20.w,
bottom: Screenutil.length(32), bottom: 32.w,
top: Screenutil.length(2), top: 2.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,

@ -16,9 +16,9 @@ class _OrderCardState extends State<OrderCard> {
Container _orderInfo() { Container _orderInfo() {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
bottom: Screenutil.length(20), bottom: 20.w,
left: Screenutil.length(24), left: 24.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -31,7 +31,7 @@ class _OrderCardState extends State<OrderCard> {
), ),
), ),
Container( Container(
margin: EdgeInsets.symmetric(vertical: Screenutil.length(24)), margin: EdgeInsets.symmetric(vertical: 24.w),
child: Row( child: Row(
children: [ children: [
Text( Text(
@ -41,7 +41,7 @@ class _OrderCardState extends State<OrderCard> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(width: Screenutil.length(40)), SizedBox(width: 40.w),
Text( Text(
'已选4项', '已选4项',
style: TextStyle( style: TextStyle(
@ -81,11 +81,11 @@ class _OrderCardState extends State<OrderCard> {
..putMap('detailMap', {'title': '去年2019年'})); ..putMap('detailMap', {'title': '去年2019年'}));
}, },
child: Container( child: Container(
margin: EdgeInsets.only(top: Screenutil.length(20)), margin: EdgeInsets.only(top: 20.w),
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(7)), padding: EdgeInsets.symmetric(vertical: 7.w),
height: Screenutil.length(44), height: 44.w,
width: Screenutil.length(128), width: 128.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xff2a2a2a), color: Color(0xff2a2a2a),
borderRadius: BorderRadius.all(Radius.circular(20)), borderRadius: BorderRadius.all(Radius.circular(20)),
@ -105,11 +105,11 @@ class _OrderCardState extends State<OrderCard> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
@ -122,7 +122,7 @@ class _OrderCardState extends State<OrderCard> {
Icon( Icon(
Icons.radio_button_unchecked, Icons.radio_button_unchecked,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(40), size: 40.w,
), ),
Expanded( Expanded(
child: Row( child: Row(

@ -15,16 +15,16 @@ class _SubmitBarState extends State<SubmitBar> {
InkWell _selectAll() { InkWell _selectAll() {
return InkWell( return InkWell(
child: Container( child: Container(
margin: EdgeInsets.symmetric(vertical: Screenutil.length(29)), margin: EdgeInsets.symmetric(vertical: 29.w),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Icon( Icon(
Icons.radio_button_unchecked, Icons.radio_button_unchecked,
color: BaseStyle.color999999, color: BaseStyle.color999999,
size: Screenutil.length(40), size: 40.w,
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: 16.w),
Text( Text(
'全选', '全选',
style: TextStyle( style: TextStyle(
@ -38,11 +38,11 @@ class _SubmitBarState extends State<SubmitBar> {
Container _submitOrder(String title) { Container _submitOrder(String title) {
return Container( return Container(
margin: EdgeInsets.symmetric(vertical: Screenutil.length(12)), margin: EdgeInsets.symmetric(vertical: 12.w),
child: Row( child: Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(16)), margin: EdgeInsets.only(right: 16.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
@ -76,11 +76,11 @@ class _SubmitBarState extends State<SubmitBar> {
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(15), top: 15.w,
bottom: Screenutil.length(14), bottom: 14.w,
), ),
height: Screenutil.length(74), height: 74.w,
width: Screenutil.length(198), width: 198.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: BaseStyle.colorffc40c, color: BaseStyle.colorffc40c,
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
@ -104,9 +104,9 @@ class _SubmitBarState extends State<SubmitBar> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
color: Colors.white, color: Colors.white,
height: Screenutil.length(98), height: 98.w,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [

@ -1,4 +1,3 @@
import 'package:akuCommunity/model/aku_shop_class_model.dart';
import 'package:akuCommunity/model/aku_shop_model.dart'; import 'package:akuCommunity/model/aku_shop_model.dart';
import 'package:akuCommunity/utils/screenutil.dart'; import 'package:akuCommunity/utils/screenutil.dart';
import 'package:akuCommunity/widget/cached_image_wrapper.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart';
@ -39,7 +38,7 @@ class _MarketCartPageState extends State<MarketCartPage> {
child: Icon( child: Icon(
Icons.check_circle, Icons.check_circle,
color: cartItem.isCheck ? Color(0xffdb0000) : Color(0xff999999), color: cartItem.isCheck ? Color(0xffdb0000) : Color(0xff999999),
size: Screenutil.length(36), size: 36.w,
), ),
), ),
); );
@ -47,13 +46,13 @@ class _MarketCartPageState extends State<MarketCartPage> {
Widget _image(String imagePath) { Widget _image(String imagePath) {
return Container( return Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(20)), margin: EdgeInsets.symmetric(horizontal: 20.w),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(2)), borderRadius: BorderRadius.all(Radius.circular(2)),
child: CachedImageWrapper( child: CachedImageWrapper(
url: imagePath, url: imagePath,
width: Screenutil.length(180), width: 180.w,
height: Screenutil.length(180), height: 180.w,
), ),
), ),
); );
@ -66,23 +65,23 @@ class _MarketCartPageState extends State<MarketCartPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(394), width: 394.w,
child: Text( child: Text(
content, content,
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(40)), margin: EdgeInsets.only(top: 40.w),
child: Text( child: Text(
'${price}', '${price}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
), ),
), ),
@ -235,7 +234,7 @@ class _MarketCartPageState extends State<MarketCartPage> {
}); });
}, },
child: Container( child: Container(
margin: EdgeInsets.symmetric(vertical: Screenutil.length(29)), margin: EdgeInsets.symmetric(vertical: 29.w),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
@ -244,14 +243,14 @@ class _MarketCartPageState extends State<MarketCartPage> {
? Icons.radio_button_checked ? Icons.radio_button_checked
: Icons.radio_button_unchecked, : Icons.radio_button_unchecked,
color: model.isAllCheck ? Color(0xffdb0000) : Color(0xff999999), color: model.isAllCheck ? Color(0xffdb0000) : Color(0xff999999),
size: Screenutil.length(40), size: 40.w,
), ),
Container( Container(
margin: EdgeInsets.only(left: Screenutil.length(18)), margin: EdgeInsets.only(left: 18.w),
child: Text( child: Text(
'全选', '全选',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -267,11 +266,11 @@ class _MarketCartPageState extends State<MarketCartPage> {
children: [ children: [
model.allPrice != null model.allPrice != null
? Container( ? Container(
margin: EdgeInsets.only(right: Screenutil.length(10)), margin: EdgeInsets.only(right: 10.w),
child: Text( child: Text(
'合计:¥${_allprice.toStringAsFixed(2)}', '合计:¥${_allprice.toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xffe60e0e), color: Color(0xffe60e0e),
), ),
), ),
@ -287,13 +286,13 @@ class _MarketCartPageState extends State<MarketCartPage> {
: Color(0xffd8d8d8), : Color(0xffd8d8d8),
borderRadius: BorderRadius.all(Radius.circular(30)), borderRadius: BorderRadius.all(Radius.circular(30)),
), ),
width: Screenutil.length(198), width: 198.w,
margin: EdgeInsets.symmetric(vertical: Screenutil.length(16)), margin: EdgeInsets.symmetric(vertical: 16.w),
padding: EdgeInsets.symmetric(vertical: Screenutil.length(12)), padding: EdgeInsets.symmetric(vertical: 12.w),
child: Text( child: Text(
'结算(${_goodsCount})', '结算(${_goodsCount})',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(30), fontSize: 30.sp,
color: color:
model.allGoodsCount != 0 ? Color(0xff333333) : Colors.white, model.allGoodsCount != 0 ? Color(0xff333333) : Colors.white,
), ),
@ -308,9 +307,9 @@ class _MarketCartPageState extends State<MarketCartPage> {
return Consumer<CartProvidde>(builder: (context, model, child) { return Consumer<CartProvidde>(builder: (context, model, child) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
@ -326,7 +325,7 @@ class _MarketCartPageState extends State<MarketCartPage> {
child: Text( child: Text(
'移至收藏夹', '移至收藏夹',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Colors.white), fontSize: 28.sp, color: Colors.white),
), ),
color: renderingMode == SlidableRenderingMode.slide color: renderingMode == SlidableRenderingMode.slide
? Color(0xffffc40c).withOpacity(animation.value) ? Color(0xffffc40c).withOpacity(animation.value)
@ -351,7 +350,7 @@ class _MarketCartPageState extends State<MarketCartPage> {
child: Text( child: Text(
'删除', '删除',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Colors.white), fontSize: 28.sp, color: Colors.white),
), ),
// onTap: () => _showSnackBar(context, 'Delete'), // onTap: () => _showSnackBar(context, 'Delete'),
); );
@ -361,9 +360,9 @@ class _MarketCartPageState extends State<MarketCartPage> {
child: Container( child: Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
left: Screenutil.length(15), left: 15.w,
bottom: Screenutil.length(37), bottom: 37.w,
), ),
child: Stack( child: Stack(
children: [ children: [
@ -376,7 +375,7 @@ class _MarketCartPageState extends State<MarketCartPage> {
), ),
Positioned( Positioned(
bottom: 0, bottom: 0,
right: Screenutil.length(16), right: 16.w,
child: CartCount( child: CartCount(
cartItem: cartItem, cartItem: cartItem,
// goodsNum: widget.goodsNum, // goodsNum: widget.goodsNum,
@ -404,9 +403,9 @@ class _MarketCartPageState extends State<MarketCartPage> {
Consumer<CartProvidde>(builder: (context, model, child) { Consumer<CartProvidde>(builder: (context, model, child) {
return Container( return Container(
color: Colors.white, color: Colors.white,
height: Screenutil.length(98), height: 98.w,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [

@ -14,7 +14,7 @@ class MarketCartAppBar extends StatelessWidget {
backgroundColor: Colors.white, backgroundColor: Colors.white,
leading: IconButton( leading: IconButton(
padding: EdgeInsets.all(0), padding: EdgeInsets.all(0),
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -29,12 +29,12 @@ class MarketCartAppBar extends StatelessWidget {
TextSpan( TextSpan(
text: '购物车 ', text: '购物车 ',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(38), fontSize: 38.sp,
), ),
), ),
TextSpan( TextSpan(
text: '业主尊享,购物更省心', text: '业主尊享,购物更省心',
style: TextStyle(fontSize: Screenutil.size(24)), style: TextStyle(fontSize: 24.sp),
), ),
], ],
), ),

@ -0,0 +1,107 @@
import 'package:akuCommunity/pages/confirm_order_page/confirm_order_page.dart';
import 'package:akuCommunity/routers/page_routers.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:provider/provider.dart';
import 'package:akuCommunity/utils/screenutil.dart';
import 'package:akuCommunity/provider/cart.dart';
class MarketCartBottomBar extends StatelessWidget {
const MarketCartBottomBar({Key key}) : super(key: key);
Widget _selectAll(CartProvidde model) {
return InkWell(
onTap: () {
model.changeALlCheckState(!model.isAllCheck);
},
child: Container(
margin: EdgeInsets.symmetric(vertical: 29.w),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(
model.isAllCheck
? Icons.radio_button_checked
: Icons.radio_button_unchecked,
color: model.isAllCheck ? Color(0xffdb0000) : Color(0xff999999),
size: 40.w,
),
Container(
margin: EdgeInsets.only(left: 18.w),
child: Text(
'全选',
style: TextStyle(
fontSize: 28.sp,
color: Color(0xff333333),
),
),
),
],
),
),
);
}
Widget _settlement(CartProvidde model,BuildContext context) {
return Row(
children: [
model.allPrice != 0
? Container(
margin: EdgeInsets.only(right: 10.w),
child: Text(
'合计:¥${model.allPrice.toStringAsFixed(2)}',
style: TextStyle(
fontSize: 28.sp,
color: Color(0xffe60e0e),
),
),
)
: SizedBox(),
InkWell(
onTap: model.allGoodsCount != 0 ? () {} : null,
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(
color: model.allGoodsCount != 0
? Color(0xffffc40c)
: Color(0xffd8d8d8),
borderRadius: BorderRadius.all(Radius.circular(30)),
),
width: 198.w,
margin: EdgeInsets.symmetric(vertical: 16.w),
padding: EdgeInsets.symmetric(vertical: 12.w),
child: Text(
'结算(${model.allGoodsCount})',
style: TextStyle(
fontSize: 30.sp,
color:
model.allGoodsCount != 0 ? Color(0xff333333) : Colors.white,
),
),
),
),
],
);
}
@override
Widget build(BuildContext context) {
return Consumer<CartProvidde>(builder: (context, model, child) {
return Container(
color: Colors.white,
height: 98.w,
width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
_selectAll(model),
_settlement(model,context,)
],
),
);
});
}
}

@ -0,0 +1,225 @@
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter_slidable/flutter_slidable.dart';
import 'package:akuCommunity/widget/cached_image_wrapper.dart';
import 'package:akuCommunity/widget/cart_count.dart';
import 'package:akuCommunity/utils/screenutil.dart';
import 'package:akuCommunity/widget/goods_specs_sheet.dart';
import 'package:akuCommunity/model/aku_shop_model.dart';
import 'package:provider/provider.dart';
import 'package:akuCommunity/provider/cart.dart';
class MarketCartCard extends StatelessWidget {
final AkuShopModel cartItem;
MarketCartCard({Key key, this.cartItem}) : super(key: key);
void _showGoodsSpecsSheet() {
// showModalBottomSheet(
// isScrollControlled: true,
// context: context,
// backgroundColor: Colors.white,
// builder: (context) {
// return GoodsSpecsSheet(
// goodsNum: widget.goodsNum,
// index: widget.index,
// reduce: widget.reduce,
// add: widget.add,
// );
// },
// );
}
Widget _cardRadio(
BuildContext context, AkuShopModel cartItem, CartProvidde model) {
return InkWell(
onTap: () {
cartItem.isCheck = !cartItem.isCheck;
model.changeCheckState(cartItem);
},
child: Container(
alignment: Alignment.center,
child: Icon(
Icons.check_circle,
color: cartItem.isCheck ? Color(0xffdb0000) : Color(0xff999999),
size: 36.w,
),
),
);
}
Widget _image(String imagePath) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 20.w),
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(2)),
child: CachedImageWrapper(
url: imagePath,
width: 180.w,
height: 180.w,
),
),
);
}
Widget _content(String content, specs, price) {
return Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: 394.w,
child: Text(
content,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 24.sp,
color: Color(0xff333333),
),
),
),
// InkWell(
// onTap: _showGoodsSpecsSheet,
// child: Container(
// margin: EdgeInsets.only(top: 10.w),
// padding: EdgeInsets.symmetric(
// vertical: 5.w,
// horizontal: 19.w,
// ),
// alignment: Alignment.center,
// decoration: BoxDecoration(
// color: Color(0xfff5f5f5),
// border: Border.all(color: Color(0xffd3d3d3), width: 0.5),
// borderRadius: BorderRadius.all(Radius.circular(15)),
// ),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.center,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: [
// Text(
// specs,
// style: TextStyle(
// fontSize: 18.sp,
// color: Color(0xff333333),
// ),
// ),
// Container(
// alignment: Alignment.center,
// margin: EdgeInsets.only(left: 16.w),
// child: Icon(
// AntDesign.down,
// color: Color(0xff333333),
// size: 22.sp,
// ),
// ),
// ],
// ),
// ),
// ),
Container(
margin: EdgeInsets.only(top: 40.w),
child: Text(
'${price}',
style: TextStyle(
fontSize: 28.sp,
color: Color(0xffe60e0e),
),
),
),
],
),
);
}
@override
Widget build(BuildContext context) {
return Consumer<CartProvidde>(builder: (context, model, child) {
return Container(
margin: EdgeInsets.only(
top: 20.w,
left: 32.w,
right: 32.w,
),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6)),
),
child: Slidable.builder(
actionPane: SlidableBehindActionPane(),
actionExtentRatio: 0.25,
secondaryActionDelegate: SlideActionBuilderDelegate(
actionCount: 2,
builder: (context, index, animation, renderingMode) {
if (index == 0) {
return SlideAction(
child: Text(
'移至收藏夹',
style: TextStyle(
fontSize: 28.sp, color: Colors.white),
),
color: renderingMode == SlidableRenderingMode.slide
? Color(0xffffc40c).withOpacity(animation.value)
: Color(0xffffc40c),
// onTap: () => _showSnackBar(context, 'More'),
closeOnTap: false,
);
} else {
return SlideAction(
onTap: () {
model.deleteGoods(cartItem.itemid);
},
decoration: BoxDecoration(
color: renderingMode == SlidableRenderingMode.slide
? Color(0xffe60e0e).withOpacity(animation.value)
: Color(0xffe60e0e),
borderRadius: BorderRadius.only(
topRight: Radius.circular(6),
bottomRight: Radius.circular(6),
),
),
child: Text(
'删除',
style: TextStyle(
fontSize: 28.sp, color: Colors.white),
),
// onTap: () => _showSnackBar(context, 'Delete'),
);
}
},
),
child: Container(
color: Colors.white,
padding: EdgeInsets.only(
top: 30.w,
left: 15.w,
bottom: 37.w,
),
child: Stack(
children: [
Row(
children: [
_cardRadio(context, cartItem, model),
_image(cartItem.itempic),
_content(cartItem.itemtitle, '默认', cartItem.itemprice),
],
),
Positioned(
bottom: 0,
right: 16.w,
child: CartCount(
cartItem: cartItem,
// goodsNum: widget.goodsNum,
// index: widget.index,
// reduce: widget.reduce,
// add: widget.add,
),
),
],
),
),
),
);
});
}
}

@ -38,20 +38,20 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
Container( Container(
alignment: alignment:
Alignment.lerp(Alignment.topCenter, Alignment.center, 0.25), Alignment.lerp(Alignment.topCenter, Alignment.center, 0.25),
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
child: Material( child: Material(
color: Color(0xffffffff), color: Color(0xffffffff),
child: Container( child: Container(
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
height: Screenutil.length(282), height: 282.w,
width: Screenutil.length(686), width: 686.w,
color: Colors.black.withOpacity(animation.value), color: Colors.black.withOpacity(animation.value),
child: GridView.builder( child: GridView.builder(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(36), top: 36.w,
left: Screenutil.length(25), left: 25.w,
right: Screenutil.length(25), right: 25.w,
bottom: Screenutil.length(30), bottom: 30.w,
), ),
shrinkWrap: true, shrinkWrap: true,
physics: NeverScrollableScrollPhysics(), physics: NeverScrollableScrollPhysics(),
@ -68,7 +68,7 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
color: _classList[index]['title'] == widget.title color: _classList[index]['title'] == widget.title
? Color(0xffe60e0e) ? Color(0xffe60e0e)
: Color(0xff979797), : Color(0xff979797),
width: Screenutil.length(1), width: 1.w,
), ),
), ),
child: Center( child: Center(
@ -79,17 +79,17 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
_classList[index]['title'] == widget.title _classList[index]['title'] == widget.title
? Color(0xffe60e0e) ? Color(0xffe60e0e)
: Color(0xff333333), : Color(0xff333333),
fontSize: Screenutil.size(24)), fontSize: 24.sp),
)), )),
), ),
); );
}, },
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3, crossAxisCount: 3,
mainAxisSpacing: Screenutil.length(20), mainAxisSpacing: 20.w,
crossAxisSpacing: Screenutil.length(30), crossAxisSpacing: 30.w,
childAspectRatio: childAspectRatio:
Screenutil.length(192) / Screenutil.length(58)), 192.w / 58.w),
), ),
), ),
), ),
@ -103,7 +103,7 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
child: Icon( child: Icon(
AntDesign.caretup, AntDesign.caretup,
color: Color(0xffffffff), color: Color(0xffffffff),
size: Screenutil.size(36), size: 36.sp,
), ),
), ),
), ),
@ -130,7 +130,7 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
leading: IconButton( leading: IconButton(
padding: EdgeInsets.all(0), padding: EdgeInsets.all(0),
icon: Icon(AntDesign.left, size: Screenutil.size(37)), icon: Icon(AntDesign.left, size: 37.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}), }),
@ -143,14 +143,14 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
Text( Text(
widget.title, widget.title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), color: Color(0xff333333)), fontSize: 32.sp, color: Color(0xff333333)),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Container( Container(
padding: EdgeInsets.only(top: 1), padding: EdgeInsets.only(top: 1),
child: Icon( child: Icon(
AntDesign.caretdown, AntDesign.caretdown,
size: Screenutil.size(18), size: 18.sp,
color: Color(0xff000000), color: Color(0xff000000),
), ),
) )
@ -162,7 +162,7 @@ class _MarketDetailsAppBarState extends State<MarketDetailsAppBar> {
IconButton( IconButton(
icon: Icon( icon: Icon(
AntDesign.search1, AntDesign.search1,
size: Screenutil.size(38), size: 38.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
onPressed: () {}, onPressed: () {},

@ -114,7 +114,7 @@ class _MarketPageState extends State<MarketPage>
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[ return <Widget>[
SliverAppBar( SliverAppBar(
expandedHeight: Screenutil.length(676), expandedHeight: 676.w,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
elevation: 0, elevation: 0,
flexibleSpace: Stack( flexibleSpace: Stack(

@ -221,9 +221,9 @@ class _MarketListState extends State<MarketList>
? SliverGoodsGroupCard() ? SliverGoodsGroupCard()
: SliverPadding( : SliverPadding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
sliver: _shopList.length == 0 sliver: _shopList.length == 0
? SliverToBoxAdapter(child: GoodsCardSkeleton()) ? SliverToBoxAdapter(child: GoodsCardSkeleton())

@ -53,8 +53,8 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
borderRadius: BorderRadius.circular(6), borderRadius: BorderRadius.circular(6),
child: CachedImageWrapper( child: CachedImageWrapper(
url: image, url: image,
height: Screenutil.length(120), height: 120.w,
width: Screenutil.length(160), width: 160.w,
), ),
); );
} }
@ -63,16 +63,16 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
return InkWell( return InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
height: Screenutil.length(52), height: 52.w,
width: Screenutil.length(170), width: 170.w,
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(10), top: 10.w,
bottom: Screenutil.length(9), bottom: 9.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isOverTime ? Color(0xffd9d9d9) : Color(0xffffc40c), color: isOverTime ? Color(0xffd9d9d9) : Color(0xffffc40c),
borderRadius: BorderRadius.all(Radius.circular(Screenutil.length(4))), borderRadius: BorderRadius.all(Radius.circular(4.w)),
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -81,16 +81,16 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
'¥${price}', '¥${price}',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: isOverTime ? Color(0xff333333) : Color(0xffe60e0e), color: isOverTime ? Color(0xff333333) : Color(0xffe60e0e),
), ),
), ),
SizedBox(width: Screenutil.length(10)), SizedBox(width: 10.w),
Text( Text(
isOverTime ? '已过期' : '去团购', isOverTime ? '已过期' : '去团购',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
], ],
@ -102,52 +102,52 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
Widget _content(String title, subtitle, remainingTime, address, arrivalTime, Widget _content(String title, subtitle, remainingTime, address, arrivalTime,
price, isOverTime) { price, isOverTime) {
return Container( return Container(
margin: EdgeInsets.only(left: Screenutil.length(20)), margin: EdgeInsets.only(left: 20.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(8)), margin: EdgeInsets.only(bottom: 8.w),
width: Screenutil.length(474), width: 474.w,
child: Text( child: Text(
title, title,
textAlign: TextAlign.left, textAlign: TextAlign.left,
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(30), fontSize: 30.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(12)), margin: EdgeInsets.only(bottom: 12.w),
child: Text( child: Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(20), fontSize: 20.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(16)), margin: EdgeInsets.only(bottom: 16.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(6), top: 6.w,
left: Screenutil.length(11), left: 11.w,
bottom: Screenutil.length(7), bottom: 7.w,
right: Screenutil.length(20), right: 20.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isOverTime ? Color(0xffd9d9d9) : Color(0xffffeee3), color: isOverTime ? Color(0xffd9d9d9) : Color(0xffffeee3),
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(4))), BorderRadius.all(Radius.circular(4.w)),
), ),
child: Row( child: Row(
children: [ children: [
Icon( Icon(
MaterialIcons.access_time, MaterialIcons.access_time,
size: Screenutil.size(18), size: 18.sp,
color: isOverTime ? Color(0xff333333) : Color(0xffff7f00), color: isOverTime ? Color(0xff333333) : Color(0xffff7f00),
), ),
Text( Text(
@ -156,15 +156,15 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
color: isOverTime ? Color(0xff333333) : Color(0xffff7f00), color: isOverTime ? Color(0xff333333) : Color(0xffff7f00),
fontSize: Screenutil.size(18), fontSize: 18.sp,
), ),
), ),
], ],
), ),
), ),
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(30)), margin: EdgeInsets.only(bottom: 30.w),
width: Screenutil.length(474), width: 474.w,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -175,14 +175,14 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
'原产地:${address}', '原产地:${address}',
style: TextStyle( style: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(20)), fontSize: 20.sp),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
'预计到货:${arrivalTime}', '预计到货:${arrivalTime}',
style: TextStyle( style: TextStyle(
color: Color(0xff999999), color: Color(0xff999999),
fontSize: Screenutil.size(20)), fontSize: 20.sp),
) )
], ],
), ),
@ -201,19 +201,19 @@ class _SliverGoodsGroupCardState extends State<SliverGoodsGroupCard> {
delegate: SliverChildBuilderDelegate((BuildContext content, int index) { delegate: SliverChildBuilderDelegate((BuildContext content, int index) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(12), top: 12.w,
left: Screenutil.length(12), left: 12.w,
right: Screenutil.length(20), right: 20.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(8))), BorderRadius.all(Radius.circular(8.w)),
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

@ -73,10 +73,10 @@ class _MarketClassPageState extends State<MarketClassPage> {
child: Stack( child: Stack(
children: [ children: [
Container( Container(
height: Screenutil.length(120), height: 120.w,
alignment: Alignment.center, alignment: Alignment.center,
color: _currentIndex == index ? Colors.white : Colors.transparent, color: _currentIndex == index ? Colors.white : Colors.transparent,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(24)), padding: EdgeInsets.symmetric(vertical: 24.w),
child: Text( child: Text(
_shopClassList[index].mainName, _shopClassList[index].mainName,
style: TextStyle( style: TextStyle(
@ -89,11 +89,11 @@ class _MarketClassPageState extends State<MarketClassPage> {
), ),
_currentIndex == index _currentIndex == index
? Positioned( ? Positioned(
top: Screenutil.length(42), top: 42.w,
left: 1, left: 1,
child: SizedBox( child: SizedBox(
width: Screenutil.length(8), width: 8.w,
height: Screenutil.length(40), height: 40.w,
child: DecoratedBox( child: DecoratedBox(
decoration: BoxDecoration(color: BaseStyle.colorffc40c), decoration: BoxDecoration(color: BaseStyle.colorffc40c),
), ),
@ -127,11 +127,11 @@ class _MarketClassPageState extends State<MarketClassPage> {
children: [ children: [
CachedImageWrapper( CachedImageWrapper(
url: infoList[index].imgurl, url: infoList[index].imgurl,
width: Screenutil.length(152), width: 152.w,
height: Screenutil.length(152), height: 152.w,
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(14)), margin: EdgeInsets.only(top: 14.w),
child: Text( child: Text(
infoList[index].sonName, infoList[index].sonName,
style: TextStyle( style: TextStyle(
@ -146,7 +146,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
}, },
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3, crossAxisCount: 3,
childAspectRatio: Screenutil.length(152) / Screenutil.length(210), childAspectRatio: 152.w / 210.w,
), ),
), ),
); );
@ -154,14 +154,14 @@ class _MarketClassPageState extends State<MarketClassPage> {
Widget _classList(String nextName, List<Info> infoList) { Widget _classList(String nextName, List<Info> infoList) {
return Container( return Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(24)), margin: EdgeInsets.only(bottom: 24.w),
padding: EdgeInsets.symmetric(vertical: Screenutil.length(14)), padding: EdgeInsets.symmetric(vertical: 14.w),
width: Screenutil.length(476), width: 476.w,
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: Color(0xffe8e8e8), width: 0.5), bottom: BorderSide(color: Color(0xffe8e8e8), width: 0.5),
@ -202,7 +202,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(203), width: 203.w,
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -
kToolbarHeight - kToolbarHeight -
_statusHeight, _statusHeight,
@ -219,7 +219,7 @@ class _MarketClassPageState extends State<MarketClassPage> {
}), }),
), ),
Container( Container(
width: Screenutil.length(547), width: 547.w,
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -
kToolbarHeight - kToolbarHeight -
_statusHeight, _statusHeight,

@ -12,11 +12,11 @@ class MarketClassBar extends StatelessWidget {
showSearch(context: context, delegate: searchBarDelegate()); showSearch(context: context, delegate: searchBarDelegate());
}, },
child: Container( child: Container(
margin: EdgeInsets.only(right: Screenutil.length(32)), margin: EdgeInsets.only(right: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(40), left: 40.w,
top: Screenutil.length(15), top: 15.w,
bottom: Screenutil.length(15)), bottom: 15.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfff3f3f3), color: Color(0xfff3f3f3),
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
@ -24,14 +24,14 @@ class MarketClassBar extends StatelessWidget {
child: Row(children: [ child: Row(children: [
Icon( Icon(
AntDesign.search1, AntDesign.search1,
size: Screenutil.size(28), size: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
SizedBox(width: 5), SizedBox(width: 5),
Text( Text(
'搜索商品、活动、帖子、应用', '搜索商品、活动、帖子、应用',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
) )
@ -49,7 +49,7 @@ class MarketClassBar extends StatelessWidget {
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
leading: InkWell( leading: InkWell(
onTap: () => Navigator.pop(context), onTap: () => Navigator.pop(context),
child: Icon(AntDesign.left, size: Screenutil.size(40)), child: Icon(AntDesign.left, size: 40.sp),
), ),
centerTitle: true, centerTitle: true,
title: _inkWellSearch(context), title: _inkWellSearch(context),

@ -78,10 +78,10 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
Container _containerCommentCard( Container _containerCommentCard(
String name, imageHeader, content, time, imagePath) { String name, imageHeader, content, time, imagePath) {
return Container( return Container(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
bottom: Screenutil.length(16), bottom: 16.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -98,50 +98,50 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
), ),
child: Image.asset( child: Image.asset(
imageHeader, imageHeader,
height: Screenutil.length(86), height: 86.w,
width: Screenutil.length(86), width: 86.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
name, name,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(36), fontSize: 36.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(6)), SizedBox(height: 6.w),
Container( Container(
width: Screenutil.length(392), width: 392.w,
child: Text( child: Text(
content, content,
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
), ),
SizedBox(height: Screenutil.length(16)), SizedBox(height: 16.w),
Text( Text(
time, time,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
], ],
), ),
SizedBox(width: Screenutil.length(12)), SizedBox(width: 12.w),
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(158), height: 158.w,
width: Screenutil.length(158), width: 158.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
], ],

@ -34,14 +34,14 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
TextStyle _textStyleTitle() { TextStyle _textStyleTitle() {
return TextStyle( return TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
); );
} }
TextStyle _textStyleSubtitle() { TextStyle _textStyleSubtitle() {
return TextStyle( return TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
); );
} }
@ -78,11 +78,11 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(36), top: 36.w,
bottom: Screenutil.length(19), bottom: 19.w,
), ),
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: Screenutil.length(32)), horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: Divider.createBorderSide(context, bottom: Divider.createBorderSide(context,
@ -94,10 +94,10 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
children: [ children: [
Image.asset( Image.asset(
_messageList[index]['imagePath'], _messageList[index]['imagePath'],
height: Screenutil.length(90), height: 90.w,
width: Screenutil.length(90), width: 90.w,
), ),
SizedBox(width: Screenutil.length(14)), SizedBox(width: 14.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -105,7 +105,7 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
_messageList[index]['title'], _messageList[index]['title'],
style: _textStyleTitle(), style: _textStyleTitle(),
), ),
SizedBox(height: Screenutil.length(5)), SizedBox(height: 5.w),
Text( Text(
_messageList[index]['subtitle'], _messageList[index]['subtitle'],
maxLines: 1, maxLines: 1,

@ -12,9 +12,9 @@ class RefundDetails extends StatelessWidget {
width: double.infinity, width: double.infinity,
color: Color(0xffffd000), color: Color(0xffffd000),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(44), top: 44.w,
bottom: Screenutil.length(44), bottom: 44.w,
left: Screenutil.length(33), left: 33.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -27,7 +27,7 @@ class RefundDetails extends StatelessWidget {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
'2020年7月8日 13:28', '2020年7月8日 13:28',
style: TextStyle( style: TextStyle(
@ -44,10 +44,10 @@ class RefundDetails extends StatelessWidget {
return Container( return Container(
color: Color(0xffffffff), color: Color(0xffffffff),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(24), top: 24.w,
bottom: Screenutil.length(24), bottom: 24.w,
left: Screenutil.length(33), left: 33.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -81,9 +81,9 @@ class RefundDetails extends StatelessWidget {
color: Color(0xffffffff), color: Color(0xffffffff),
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(25), top: 25.w,
bottom: Screenutil.length(22), bottom: 22.w,
left: Screenutil.length(33), left: 33.w,
), ),
child: Text( child: Text(
'退款信息', '退款信息',
@ -96,24 +96,24 @@ class RefundDetails extends StatelessWidget {
Container( Container(
color: Color(0xfff2f2f2), color: Color(0xfff2f2f2),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(30), top: 30.w,
bottom: Screenutil.length(24), bottom: 24.w,
left: Screenutil.length(33), left: 33.w,
), ),
child: Row( child: Row(
children: [ children: [
Image.asset( Image.asset(
'assets/example/tz1.png', 'assets/example/tz1.png',
height: Screenutil.length(120), height: 120.w,
width: Screenutil.length(120), width: 120.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(544), width: 544.w,
child: Text( child: Text(
'轻便自由 男士针织休闲西装 全身羊毛修身意大利进口精致裁剪', '轻便自由 男士针织休闲西装 全身羊毛修身意大利进口精致裁剪',
maxLines: 2, maxLines: 2,
@ -124,7 +124,7 @@ class RefundDetails extends StatelessWidget {
), ),
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
'规格分类M 黑色', '规格分类M 黑色',
style: TextStyle( style: TextStyle(
@ -141,9 +141,9 @@ class RefundDetails extends StatelessWidget {
color: Color(0xffffffff), color: Color(0xffffffff),
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(22), top: 22.w,
left: Screenutil.length(33), left: 33.w,
bottom: Screenutil.length(22), bottom: 22.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -155,7 +155,7 @@ class RefundDetails extends StatelessWidget {
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
), ),
SizedBox(height: Screenutil.length(22)), SizedBox(height: 22.w),
Text( Text(
'退款金额:${'¥1123.60'}', '退款金额:${'¥1123.60'}',
style: TextStyle( style: TextStyle(
@ -163,7 +163,7 @@ class RefundDetails extends StatelessWidget {
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
), ),
SizedBox(height: Screenutil.length(22)), SizedBox(height: 22.w),
Text( Text(
'申请时间:${'2020-7-7 21:09'}', '申请时间:${'2020-7-7 21:09'}',
style: TextStyle( style: TextStyle(
@ -171,7 +171,7 @@ class RefundDetails extends StatelessWidget {
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
), ),
SizedBox(height: Screenutil.length(22)), SizedBox(height: 22.w),
Text( Text(
'退款编号:${'8324982349230293'}', '退款编号:${'8324982349230293'}',
style: TextStyle( style: TextStyle(
@ -198,7 +198,7 @@ class RefundDetails extends StatelessWidget {
children: [ children: [
_containerHeader(), _containerHeader(),
_containerPrice(), _containerPrice(),
SizedBox(height: Screenutil.length(44)), SizedBox(height: 44.w),
_containerContent(), _containerContent(),
], ],
), ),

@ -96,9 +96,9 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
Text( Text(
lookType, lookType,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
Icon(AntDesign.right, size: Screenutil.size(40)), Icon(AntDesign.right, size: 40.sp),
], ],
), ),
); );
@ -107,15 +107,15 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
Container _containerCard(String status, type, imagePath, content, lookType) { Container _containerCard(String status, type, imagePath, content, lookType) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(21), top: 21.w,
bottom: Screenutil.length(14), bottom: 14.w,
left: Screenutil.length(30), left: 30.w,
right: Screenutil.length(20)), right: 20.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -130,7 +130,7 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
padding: EdgeInsets.only(left: Screenutil.length(2)), padding: EdgeInsets.only(left: 2.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -141,39 +141,39 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
'商城通知', '商城通知',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
Text( Text(
status, status,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
], ],
), ),
SizedBox(height: Screenutil.length(5)), SizedBox(height: 5.w),
Text(type, Text(type,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333))), color: Color(0xff333333))),
SizedBox(height: Screenutil.length(8)), SizedBox(height: 8.w),
Row( Row(
children: [ children: [
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(120), height: 120.w,
width: Screenutil.length(120), width: 120.w,
), ),
SizedBox(width: Screenutil.length(32)), SizedBox(width: 32.w),
Container( Container(
width: Screenutil.length(439), width: 439.w,
child: Text( child: Text(
content, content,
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
), ),
@ -182,7 +182,7 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(30)), SizedBox(height: 30.w),
Divider(), Divider(),
_inkWellLook(type, content, lookType), _inkWellLook(type, content, lookType),
], ],

@ -23,9 +23,9 @@ class SystemDetailsPage extends StatelessWidget {
children: [ children: [
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(42), top: 42.w,
left: Screenutil.length(34), left: 34.w,
right: Screenutil.length(44), right: 44.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -34,23 +34,23 @@ class SystemDetailsPage extends StatelessWidget {
'系统通知', '系统通知',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(5)), SizedBox(height: 5.w),
Text( Text(
bundle.getMap('detailsMap')['type'], bundle.getMap('detailsMap')['type'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
SizedBox(height: Screenutil.length(110)), SizedBox(height: 110.w),
Text( Text(
bundle.getMap('detailsMap')['content'], bundle.getMap('detailsMap')['content'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -77,9 +77,9 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
Text( Text(
'查看详情', '查看详情',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
Icon(AntDesign.right, size: Screenutil.size(40)), Icon(AntDesign.right, size: 40.sp),
], ],
), ),
); );
@ -88,15 +88,15 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
Container _containerCard(String status, String type, String content) { Container _containerCard(String status, String type, String content) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(21), top: 21.w,
bottom: Screenutil.length(14), bottom: 14.w,
left: Screenutil.length(30), left: 30.w,
right: Screenutil.length(20)), right: 20.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -111,7 +111,7 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
padding: EdgeInsets.only(left: Screenutil.length(2)), padding: EdgeInsets.only(left: 2.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -122,35 +122,35 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
'系统通知', '系统通知',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
Text( Text(
status, status,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff999999)), color: Color(0xff999999)),
), ),
], ],
), ),
SizedBox(height: Screenutil.length(5)), SizedBox(height: 5.w),
Text( Text(
type, type,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(8)), SizedBox(height: 8.w),
Text( Text(
'驳回理由:${content}', '驳回理由:${content}',
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), color: Color(0xff333333)), fontSize: 28.sp, color: Color(0xff333333)),
), ),
], ],
), ),
), ),
SizedBox(height: Screenutil.length(30)), SizedBox(height: 30.w),
Divider(), Divider(),
_inkWellLook(type, content), _inkWellLook(type, content),
], ],

@ -18,11 +18,11 @@ class _CarAddPageState extends State<CarAddPage> {
return InkWell( return InkWell(
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(19), top: 19.w,
bottom: Screenutil.length(21), bottom: 21.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(686), width: 686.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffd000), color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -37,7 +37,7 @@ class _CarAddPageState extends State<CarAddPage> {
'保存', '保存',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -64,17 +64,17 @@ class _CarAddPageState extends State<CarAddPage> {
}, },
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -87,10 +87,10 @@ class _CarAddPageState extends State<CarAddPage> {
Text( Text(
'您的车牌号', '您的车牌号',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
CommonInput( CommonInput(
hintText: '请输入您的车牌号', hintText: '请输入您的车牌号',
inputController: _carNum, inputController: _carNum,
@ -98,7 +98,7 @@ class _CarAddPageState extends State<CarAddPage> {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(89)), SizedBox(height: 89.w),
_inkWellSave(), _inkWellSave(),
], ],
), ),

@ -25,15 +25,15 @@ class _MineCarPageState extends State<MineCarPage> {
Widget _containerHouseCard(String title, subtitle) { Widget _containerHouseCard(String title, subtitle) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(24), top: 24.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(41), top: 41.w,
bottom: Screenutil.length(41), bottom: 41.w,
left: Screenutil.length(27), left: 27.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
@ -45,25 +45,25 @@ class _MineCarPageState extends State<MineCarPage> {
children: [ children: [
Image.asset( Image.asset(
AssetsImage.HOUSEATTESTATION, AssetsImage.HOUSEATTESTATION,
height: Screenutil.length(48), height: 48.w,
width: Screenutil.length(48), width: 48.w,
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
) )
@ -91,11 +91,11 @@ class _MineCarPageState extends State<MineCarPage> {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(11), top: 11.w,
bottom: Screenutil.length(10), bottom: 10.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(167), width: 167.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffd000), color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -110,7 +110,7 @@ class _MineCarPageState extends State<MineCarPage> {
'去添加', '去添加',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -120,34 +120,34 @@ class _MineCarPageState extends State<MineCarPage> {
Widget _containerAttestation(String tag) { Widget _containerAttestation(String tag) {
return Container( return Container(
margin: EdgeInsets.only(top: Screenutil.length(156)), margin: EdgeInsets.only(top: 156.w),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Image.asset( Image.asset(
AssetsImage.CARHEADER, AssetsImage.CARHEADER,
height: Screenutil.length(240), height: 240.w,
width: Screenutil.length(130), width: 130.w,
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
Text( Text(
'马泽鹏', '马泽鹏',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
), ),
SizedBox(height: Screenutil.length(8)), SizedBox(height: 8.w),
Text( Text(
'尊敬的业主/租客,您还没有添加您的${tag}', '尊敬的业主/租客,您还没有添加您的${tag}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
SizedBox(height: Screenutil.length(39)), SizedBox(height: 39.w),
_inkWellCheck(widget.bundle.getMap('carType')['type']), _inkWellCheck(widget.bundle.getMap('carType')['type']),
], ],
), ),
@ -157,16 +157,16 @@ class _MineCarPageState extends State<MineCarPage> {
Widget _containerInfoCard(String title, bool isDelete) { Widget _containerInfoCard(String title, bool isDelete) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
top: Screenutil.length(26), top: 26.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(40), left: 40.w,
right: Screenutil.length(26), right: 26.w,
top: Screenutil.length(26), top: 26.w,
bottom: Screenutil.length(25), bottom: 25.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -179,7 +179,7 @@ class _MineCarPageState extends State<MineCarPage> {
title, title,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -188,7 +188,7 @@ class _MineCarPageState extends State<MineCarPage> {
child: Text( child: Text(
'移除', '移除',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -207,18 +207,18 @@ class _MineCarPageState extends State<MineCarPage> {
onTap: () {}, onTap: () {},
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(22), bottom: 22.w,
), ),
color: Color(0xffffd000), color: Color(0xffffd000),
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(85), height: 85.w,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Text( child: Text(
buttonName, buttonName,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -243,7 +243,7 @@ class _MineCarPageState extends State<MineCarPage> {
ListView( ListView(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(bottom: Screenutil.length(85)), margin: EdgeInsets.only(bottom: 85.w),
child: Column( child: Column(
children: [ children: [
Column( Column(
@ -255,7 +255,7 @@ class _MineCarPageState extends State<MineCarPage> {
.toList(), .toList(),
), ),
// Container( // Container(
// margin: EdgeInsets.only(top: Screenutil.length(64)), // margin: EdgeInsets.only(top: 64.w),
// child: Column( // child: Column(
// children: _listCart // children: _listCart
// .map((item) => _containerInfoCard( // .map((item) => _containerInfoCard(

@ -29,10 +29,10 @@ class _SelectCommunityPageState extends State<SelectCommunityPage> {
Container( Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
color: Colors.white, color: Colors.white,
margin: EdgeInsets.only(top: Screenutil.length(32)), margin: EdgeInsets.only(top: 32.w),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32)), horizontal: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -41,13 +41,13 @@ class _SelectCommunityPageState extends State<SelectCommunityPage> {
Icon( Icon(
EvilIcons.location, EvilIcons.location,
color: Color(0xff333333), color: Color(0xff333333),
size: Screenutil.size(40), size: 40.sp,
), ),
SizedBox(width: Screenutil.length(18)), SizedBox(width: 18.w),
Text( Text(
'深圳市', '深圳市',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
) )
@ -57,18 +57,18 @@ class _SelectCommunityPageState extends State<SelectCommunityPage> {
child: Icon( child: Icon(
MaterialIcons.refresh, MaterialIcons.refresh,
color: Color(0xff333333), color: Color(0xff333333),
size: Screenutil.size(40), size: 40.sp,
), ),
), ),
], ],
), ),
), ),
Container( Container(
margin: EdgeInsets.all(Screenutil.length(32)), margin: EdgeInsets.all(32.w),
child: Text( child: Text(
'所有社区', '所有社区',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -87,12 +87,12 @@ class _SelectCommunityPageState extends State<SelectCommunityPage> {
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
color: Colors.white, color: Colors.white,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32)), horizontal: 32.w),
child: Text( child: Text(
_communityList[index], _communityList[index],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -25,11 +25,11 @@ class _SelectParkingPageState extends State<SelectParkingPage> {
body: ListView( body: ListView(
children: [ children: [
Container( Container(
margin: EdgeInsets.all(Screenutil.length(32)), margin: EdgeInsets.all(32.w),
child: Text( child: Text(
'所有社区', '所有社区',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -42,12 +42,12 @@ class _SelectParkingPageState extends State<SelectParkingPage> {
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
color: Colors.white, color: Colors.white,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(28), vertical: 28.w,
horizontal: Screenutil.length(32)), horizontal: 32.w),
child: Text( child: Text(
'${widget.bundle.getString('title')}地下车库11号${index + 1}', '${widget.bundle.getString('title')}地下车库11号${index + 1}',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),

@ -32,11 +32,11 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
return InkWell( return InkWell(
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(19), top: 19.w,
bottom: Screenutil.length(21), bottom: 21.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(686), width: 686.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffd000), color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -51,7 +51,7 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
'保存', '保存',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.length(32), fontSize: 32.w,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -78,9 +78,9 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
}, },
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -90,8 +90,8 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
_inputList.length, _inputList.length,
(index) => Container( (index) => Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(23), top: 23.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -104,10 +104,10 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
Text( Text(
_inputList[index]['title'], _inputList[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
SizedBox(height: Screenutil.length(25)), SizedBox(height: 25.w),
CommonInput( CommonInput(
hintText: _inputList[index]['hintText'], hintText: _inputList[index]['hintText'],
inputController: _inputList[index] inputController: _inputList[index]
@ -119,7 +119,7 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
), ),
), ),
), ),
SizedBox(height: Screenutil.length(89)), SizedBox(height: 89.w),
_inkWellSave(), _inkWellSave(),
], ],
), ),

@ -20,15 +20,15 @@ class _MineHousePageState extends State<MineHousePage> {
Widget _containerHouseCard(String title, subtitle) { Widget _containerHouseCard(String title, subtitle) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(24), top: 24.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(41), top: 41.w,
bottom: Screenutil.length(41), bottom: 41.w,
left: Screenutil.length(27), left: 27.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
@ -40,25 +40,25 @@ class _MineHousePageState extends State<MineHousePage> {
children: [ children: [
Image.asset( Image.asset(
AssetsImage.HOUSEATTESTATION, AssetsImage.HOUSEATTESTATION,
height: Screenutil.length(48), height: 48.w,
width: Screenutil.length(48), width: 48.w,
), ),
SizedBox(width: Screenutil.length(20)), SizedBox(width: 20.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
) )
@ -78,11 +78,11 @@ class _MineHousePageState extends State<MineHousePage> {
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(11), top: 11.w,
bottom: Screenutil.length(10), bottom: 10.w,
), ),
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(167), width: 167.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffd000), color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)), borderRadius: BorderRadius.all(Radius.circular(4)),
@ -97,7 +97,7 @@ class _MineHousePageState extends State<MineHousePage> {
'去认证', '去认证',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -113,27 +113,27 @@ class _MineHousePageState extends State<MineHousePage> {
children: [ children: [
Image.asset( Image.asset(
AssetsImage.HOUSEHEADER, AssetsImage.HOUSEHEADER,
height: Screenutil.length(124), height: 124.w,
width: Screenutil.length(124), width: 124.w,
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
Text( Text(
'马泽鹏', '马泽鹏',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff474747), color: Color(0xff474747),
), ),
), ),
SizedBox(height: Screenutil.length(8)), SizedBox(height: 8.w),
Text( Text(
'经过产权人审核成为住户,开启更多功能', '经过产权人审核成为住户,开启更多功能',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
SizedBox(height: Screenutil.length(39)), SizedBox(height: 39.w),
_inkWellCheck(), _inkWellCheck(),
], ],
), ),
@ -161,7 +161,7 @@ class _MineHousePageState extends State<MineHousePage> {
)) ))
.toList(), .toList(),
), ),
SizedBox(height: Screenutil.length(156)), SizedBox(height: 156.w),
_containerAttestation(), _containerAttestation(),
], ],
), ),

@ -65,13 +65,13 @@ class NoticePage extends StatelessWidget {
child: Row( child: Row(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(12)), margin: EdgeInsets.only(right: 12.w),
child: ClipOval( child: ClipOval(
child: CachedImageWrapper( child: CachedImageWrapper(
url: url:
'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1380335538,732392216&fm=26&gp=0.jpg', 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1380335538,732392216&fm=26&gp=0.jpg',
width: Screenutil.length(45), width: 45.w,
height: Screenutil.length(45), height: 45.w,
), ),
), ),
), ),
@ -81,21 +81,21 @@ class NoticePage extends StatelessWidget {
TextSpan( TextSpan(
text: '管理员 ', text: '管理员 ',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
TextSpan( TextSpan(
text: ' 发布于 ', text: ' 发布于 ',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
), ),
TextSpan( TextSpan(
text: '2020-08-12', text: '2020-08-12',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),
@ -122,32 +122,32 @@ class NoticePage extends StatelessWidget {
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(26), top: 26.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(60)), bottom: 60.w),
children: [ children: [
Text( Text(
bundle.getMap('details')['title'], bundle.getMap('details')['title'],
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff333333), color: Color(0xff333333),
fontWeight: FontWeight.w600,), fontWeight: FontWeight.w600,),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(45)), margin: EdgeInsets.only(top: 45.w),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
child: CachedImageWrapper( child: CachedImageWrapper(
url: bundle.getMap('details')['imagePath'], url: bundle.getMap('details')['imagePath'],
width: Screenutil.length(686), width: 686.w,
height: Screenutil.length(228), height: 228.w,
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(44)), margin: EdgeInsets.only(top: 44.w),
width: Screenutil.length(647), width: 647.w,
child: Html(data: htmlData), child: Html(data: htmlData),
), ),
_creater(), _creater(),

@ -74,9 +74,9 @@ class _AlarmPageState extends State<AlarmPage> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(32)), margin: EdgeInsets.only(top: 32.w),
width: 686.w, width: 686.w,
height: Screenutil.length(148), height: 148.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white.withOpacity(0.9), color: Colors.white.withOpacity(0.9),
borderRadius: BorderRadius.circular(16), borderRadius: BorderRadius.circular(16),
@ -88,41 +88,41 @@ class _AlarmPageState extends State<AlarmPage> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(24), top: 24.w,
left: Screenutil.length(32)), left: 32.w),
child: Text( child: Text(
'当前位置(仅供参考)', '当前位置(仅供参考)',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xff333333), color: Color(0xff333333),
fontSize: Screenutil.size(28)), fontSize: 28.sp),
), ),
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(20), top: 20.w,
left: Screenutil.length(32)), left: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Icon( Icon(
Entypo.location_pin, Entypo.location_pin,
color: Color(0xff666666), color: Color(0xff666666),
size: Screenutil.size(29), size: 29.sp,
), ),
Container( Container(
margin: margin:
EdgeInsets.only(left: Screenutil.length(5)), EdgeInsets.only(left: 5.w),
child: Text( child: Text(
(_location == null) (_location == null)
? '加载中……' ? '加载中……'
: _location.aoiName, : _location.aoiName,
style: TextStyle( style: TextStyle(
color: Color(0xff666666), color: Color(0xff666666),
fontSize: Screenutil.size(28), fontSize: 28.sp,
), ),
), ),
), ),
@ -137,11 +137,11 @@ class _AlarmPageState extends State<AlarmPage> {
Spacer(), Spacer(),
Container( Container(
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(66), width: 66.w,
height: Screenutil.length(66), height: 66.w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: borderRadius:
BorderRadius.circular(Screenutil.length(66)), BorderRadius.circular(66.w),
boxShadow: <BoxShadow>[ boxShadow: <BoxShadow>[
BoxShadow( BoxShadow(
color: Color(0x1F000000), color: Color(0x1F000000),
@ -154,7 +154,7 @@ class _AlarmPageState extends State<AlarmPage> {
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: borderRadius:
BorderRadius.circular(Screenutil.length(66))), BorderRadius.circular(66.w)),
color: Color(0xFFFFFFFF), color: Color(0xFFFFFFFF),
onPressed: () { onPressed: () {
_amapController?.setCenterCoordinate( _amapController?.setCenterCoordinate(
@ -165,19 +165,19 @@ class _AlarmPageState extends State<AlarmPage> {
}, },
child: Icon( child: Icon(
Icons.location_searching, Icons.location_searching,
size: Screenutil.length(44), size: 44.w,
), ),
), ),
), ),
SizedBox(width: Screenutil.length(34)), SizedBox(width: 34.w),
], ],
), ),
SizedBox( SizedBox(
height: Screenutil.length(29), height: 29.w,
), ),
Container( Container(
width: double.infinity, width: double.infinity,
height: Screenutil.length(271), height: 271.w,
alignment: Alignment.center, alignment: Alignment.center,
decoration: decoration:
BoxDecoration(color: Color(0xFFFFFFFF).withOpacity(0.9)), BoxDecoration(color: Color(0xFFFFFFFF).withOpacity(0.9)),
@ -186,19 +186,19 @@ class _AlarmPageState extends State<AlarmPage> {
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
children: [ children: [
Positioned( Positioned(
bottom: Screenutil.length(173), bottom: 173.w,
child: Container( child: Container(
padding: EdgeInsets.all(Screenutil.length(12)), padding: EdgeInsets.all(12.w),
height: Screenutil.length(196), height: 196.w,
width: Screenutil.length(196), width: 196.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all( borderRadius: BorderRadius.all(
Radius.circular(Screenutil.length(196))), Radius.circular(196.w)),
), ),
child: Container( child: Container(
height: Screenutil.length(172), height: 172.w,
width: Screenutil.length(172), width: 172.w,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.bottomLeft, begin: Alignment.bottomLeft,
@ -206,20 +206,20 @@ class _AlarmPageState extends State<AlarmPage> {
colors: [Color(0xffef0909), Color(0xffff8880)], colors: [Color(0xffef0909), Color(0xffff8880)],
), ),
borderRadius: BorderRadius.all( borderRadius: BorderRadius.all(
Radius.circular(Screenutil.length(172))), Radius.circular(172.w)),
boxShadow: <BoxShadow>[ boxShadow: <BoxShadow>[
BoxShadow( BoxShadow(
color: Color(0xfffd7770).withOpacity(0.33), color: Color(0xfffd7770).withOpacity(0.33),
offset: Offset(0, Screenutil.length(10)), offset: Offset(0, 10.w),
blurRadius: Screenutil.length(20), blurRadius: 20.w,
spreadRadius: Screenutil.length(4), spreadRadius: 4.w,
) )
], ],
), ),
child: FlatButton( child: FlatButton(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
Screenutil.length(172))), 172.w)),
onPressed: () { onPressed: () {
setState(() { setState(() {
_makephonenum('tel:110'); _makephonenum('tel:110');
@ -228,7 +228,7 @@ class _AlarmPageState extends State<AlarmPage> {
child: Icon( child: Icon(
Feather.phone_call, Feather.phone_call,
color: Colors.white, color: Colors.white,
size: Screenutil.size(87), size: 87.sp,
), ),
), ),
), ),
@ -236,12 +236,12 @@ class _AlarmPageState extends State<AlarmPage> {
), ),
Column( Column(
children: [ children: [
SizedBox(height: Screenutil.length(146)), SizedBox(height: 146.w),
Text( Text(
'谎报警情,依法追责', '谎报警情,依法追责',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xffe02020), color: Color(0xffe02020),
), ),
), ),
@ -249,7 +249,7 @@ class _AlarmPageState extends State<AlarmPage> {
Text( Text(
'谎报警情将可能被处以五日以上十日以下拘留', '谎报警情将可能被处以五日以上十日以下拘留',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(24), fontSize: 24.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),

@ -17,7 +17,7 @@ class ExplainTemplate extends BeautifulPopupTemplate {
@override @override
final maxWidth = 400.w; final maxWidth = 400.w;
@override @override
final maxHeight = Screenutil.length(617); final maxHeight = 617.w;
@override @override
final bodyMargin = 0; final bodyMargin = 0;
@override @override
@ -55,9 +55,9 @@ class ExplainTemplate extends BeautifulPopupTemplate {
// return Container( // return Container(
// color: Colors.white, // color: Colors.white,
// padding: EdgeInsets.only( // padding: EdgeInsets.only(
// top: Screenutil.length(32), // top: 32.w,
// left: Screenutil.length(32), // left: 32.w,
// right: Screenutil.length(32), // right: 32.w,
// ), // ),
// child: Column( // child: Column(
// crossAxisAlignment: CrossAxisAlignment.start, // crossAxisAlignment: CrossAxisAlignment.start,
@ -71,7 +71,7 @@ class ExplainTemplate extends BeautifulPopupTemplate {
// ), // ),
// ), // ),
// Container( // Container(
// margin: EdgeInsets.only(top: Screenutil.length(20)), // margin: EdgeInsets.only(top: 20.w),
// child: Text( // child: Text(
// '点击“呼叫110”后您可以直接拨打本地110。页面中提供了您当前所在位置以便您与警方沟通。GPS信号弱时位置可能存在偏移', // '点击“呼叫110”后您可以直接拨打本地110。页面中提供了您当前所在位置以便您与警方沟通。GPS信号弱时位置可能存在偏移',
// style: TextStyle( // style: TextStyle(

@ -20,14 +20,14 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
title: Text( title: Text(
'实名认证', '实名认证',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
content: Text( content: Text(
'\n为了小区的安全,需要先进行实名认证', '\n为了小区的安全,需要先进行实名认证',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff030303), color: Color(0xff030303),
), ),
), ),
@ -36,7 +36,7 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
child: Text( child: Text(
'考虑考虑', '考虑考虑',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
), ),
), ),
@ -49,7 +49,7 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
'前去认证', '前去认证',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: Screenutil.size(34), fontSize: 34.sp,
color: Color(0xffff8200), color: Color(0xffff8200),
), ),
), ),
@ -80,7 +80,7 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
child: ListView( child: ListView(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(220)), margin: EdgeInsets.only(top: 220.w),
child: Column( child: Column(
children: [ children: [
InkWell( InkWell(
@ -89,22 +89,22 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
children: [ children: [
Container( Container(
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(400), width: 400.w,
height: Screenutil.length(420), height: 420.w,
child: Image.asset( child: Image.asset(
'assets/images/open_door.png', 'assets/images/open_door.png',
width: Screenutil.length(400), width: 400.w,
height: Screenutil.length(420), height: 420.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
), ),
Positioned( Positioned(
top: Screenutil.length(120), top: 120.w,
left: Screenutil.length(137.5), left:137.5.w,
child: Image.asset( child: Image.asset(
'assets/images/lock.png', 'assets/images/lock.png',
width: Screenutil.length(125), width: 125.w,
height: Screenutil.length(150), height: 150.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
), ),
@ -112,11 +112,11 @@ class _OpenDoorPageState extends State<OpenDoorPage> {
), ),
), ),
Container( Container(
margin: EdgeInsets.only(top: Screenutil.length(40)), margin: EdgeInsets.only(top: 40.w),
child: Text( child: Text(
'未检测到相关设备', '未检测到相关设备',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.length(44), fontSize: 44.w,
color: Color(0xff999999), color: Color(0xff999999),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),

@ -28,54 +28,54 @@ class _OpeningCodePageState extends State<OpeningCodePage> {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(70), top: 70.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(76), bottom: 76.w,
), ),
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(20), horizontal: 20.w,
vertical: Screenutil.length(32), vertical: 32.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffffff), color: Color(0xffffffff),
borderRadius: borderRadius:
BorderRadius.all(Radius.circular(Screenutil.length(8))), BorderRadius.all(Radius.circular(8.w)),
), ),
height: Screenutil.length(746), height: 746.w,
width: Screenutil.length(686), width: 686.w,
child: Column( child: Column(
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(44), top: 44.w,
bottom: Screenutil.length(32), bottom: 32.w,
), ),
height: Screenutil.length(460), height: 460.w,
width: Screenutil.length(460), width: 460.w,
child: QrImage( child: QrImage(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
data: '智慧社区开门码', data: '智慧社区开门码',
size: Screenutil.length(460), size: 460.w,
), ),
), ),
Container( Container(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: Screenutil.length(29), horizontal: 29.w,
vertical: Screenutil.length(33), vertical: 33.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfffffbf6), color: Color(0xfffffbf6),
borderRadius: BorderRadius.all( borderRadius: BorderRadius.all(
Radius.circular(Screenutil.length(8))), Radius.circular(8.w)),
), ),
width: Screenutil.length(646), width: 646.w,
height: Screenutil.length(146), height: 146.w,
child: Text( child: Text(
'扫一扫,你的专属二维码,人人文明出行,路路畅通安宁,智慧社区祝您一路顺风', '扫一扫,你的专属二维码,人人文明出行,路路畅通安宁,智慧社区祝您一路顺风',
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
color: Color(0xff666666), color: Color(0xff666666),
), ),
), ),
@ -91,13 +91,13 @@ class _OpeningCodePageState extends State<OpeningCodePage> {
Icon( Icon(
AntDesign.checkcircleo, AntDesign.checkcircleo,
color: Color(0xffffc40c), color: Color(0xffffc40c),
size: Screenutil.size(32), size: 32.sp,
), ),
SizedBox(width: Screenutil.length(19)), SizedBox(width: 19.w),
Text( Text(
'已刷新', '已刷新',
style: TextStyle( style: TextStyle(
fontSize: Screenutil.size(32), fontSize: 32.sp,
color: Color(0xff999999), color: Color(0xff999999),
), ),
), ),

@ -29,7 +29,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
elevation: 0, elevation: 0,
backgroundColor: Colors.white, backgroundColor: Colors.white,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -63,10 +63,10 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Container _containerRadio() { Container _containerRadio() {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(8), top: 8.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
), ),
child: Row( child: Row(
children: [ children: [
@ -75,11 +75,11 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333),
), ),
SizedBox(width: Screenutil.length(34)), SizedBox(width: 34.w),
Row( Row(
children: _listRadio children: _listRadio
.map((item) => Container( .map((item) => Container(
margin: EdgeInsets.only(left: Screenutil.length(44)), margin: EdgeInsets.only(left: 44.w),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
setState(() { setState(() {
@ -98,7 +98,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
? BaseStyle.colorff8500 ? BaseStyle.colorff8500
: BaseStyle.colord8d8d8, : BaseStyle.colord8d8d8,
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: 16.w),
Text( Text(
item['radioName'], item['radioName'],
style: TextStyle( style: TextStyle(
@ -122,12 +122,12 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Container _containerEvaluateTextField() { Container _containerEvaluateTextField() {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(70), top: 70.w,
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(22), top: 22.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
color: Colors.white, color: Colors.white,
child: Container( child: Container(
@ -145,8 +145,8 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
top: Screenutil.length(0), top: 0.w,
bottom: Screenutil.length(0), bottom: 0.w,
), ),
hintText: hintText, hintText: hintText,
border: InputBorder.none, //线 border: InputBorder.none, //线
@ -168,10 +168,10 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Container _containerAddImage() { Container _containerAddImage() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(36), left: 36.w,
right: Screenutil.length(36), right: 36.w,
top: Screenutil.length(32), top: 32.w,
bottom: Screenutil.length(24)), bottom: 24.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -180,12 +180,12 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333), fontSize: BaseStyle.fontSize28, color: BaseStyle.color333333),
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
InkWell( InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
width: Screenutil.length(218), width: 218.w,
height: Screenutil.length(218), height: 218.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
@ -205,10 +205,10 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
return InkWell( return InkWell(
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(85), height: 85.w,
width: Screenutil.length(686), width: 686.w,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(20), vertical: 20.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
@ -243,9 +243,9 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(21), top: 21.w,
left: Screenutil.length(24), left: 24.w,
right: Screenutil.length(24), right: 24.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
@ -268,7 +268,7 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
], ],
), ),
), ),
SizedBox(height: Screenutil.length(26)), SizedBox(height: 26.w),
_inkWellRelease(), _inkWellRelease(),
], ],
), ),

@ -32,7 +32,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
children: <Widget>[ children: <Widget>[
_body(), _body(),
SlidingUpPanel( SlidingUpPanel(
margin: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), margin: EdgeInsets.symmetric(horizontal: 32.w),
maxHeight: _panelHeightOpen, maxHeight: _panelHeightOpen,
minHeight: _panelHeightClosed, minHeight: _panelHeightClosed,
parallaxEnabled: true, parallaxEnabled: true,
@ -45,10 +45,10 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
), ),
), ),
Positioned( Positioned(
top: Screenutil.length(32) + _statusHeight, top: 32.w + _statusHeight,
child: Container( child: Container(
width: Screenutil.length(686), width: 686.w,
padding: EdgeInsets.symmetric(horizontal: Screenutil.length(32)), padding: EdgeInsets.symmetric(horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(6), borderRadius: BorderRadius.circular(6),
@ -64,7 +64,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
child: IconButton( child: IconButton(
padding: EdgeInsets.all(0), padding: EdgeInsets.all(0),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -76,13 +76,13 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
child: CachedImageWrapper( child: CachedImageWrapper(
url: url:
'https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00412-2241.jpg', 'https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00412-2241.jpg',
width: Screenutil.length(72), width: 72.w,
height: Screenutil.length(72), height: 72.w,
), ),
), ),
), ),
Container( Container(
margin: EdgeInsets.only(left: Screenutil.length(20)), margin: EdgeInsets.only(left: 20.w),
child: Text( child: Text(
'已签收', '已签收',
style: TextStyle( style: TextStyle(
@ -96,8 +96,8 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
SizedBox( SizedBox(
width: Screenutil.length(1), width: 1.w,
height: Screenutil.length(50), height: 50.w,
child: DecoratedBox( child: DecoratedBox(
decoration: decoration:
BoxDecoration(color: BaseStyle.color999999), BoxDecoration(color: BaseStyle.color999999),
@ -106,7 +106,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
InkWell( InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
margin: EdgeInsets.only(left: Screenutil.length(20)), margin: EdgeInsets.only(left: 20.w),
child: Column( child: Column(
children: [ children: [
Icon( Icon(
@ -116,7 +116,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
), ),
Container( Container(
margin: margin:
EdgeInsets.only(top: Screenutil.length(8)), EdgeInsets.only(top: 8.w),
child: Text( child: Text(
'物流投诉', '物流投诉',
style: TextStyle( style: TextStyle(
@ -147,7 +147,7 @@ class _LookLogisticsPageState extends State<LookLogisticsPage> {
controller: sc, controller: sc,
children: <Widget>[ children: <Widget>[
Container( Container(
height: Screenutil.length(40), height: 40.w,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xfff0f0f0), color: Color(0xfff0f0f0),

@ -21,7 +21,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
elevation: 0, elevation: 0,
backgroundColor: BaseStyle.colorffd000, backgroundColor: BaseStyle.colorffd000,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -43,9 +43,9 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
width: double.infinity, width: double.infinity,
color: Color(0xffffd000), color: Color(0xffffd000),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(44), top: 44.w,
bottom: Screenutil.length(44), bottom: 44.w,
left: Screenutil.length(33), left: 33.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -58,7 +58,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(10)), SizedBox(height: 10.w),
Text( Text(
'还剩9小时33分自动确认', '还剩9小时33分自动确认',
style: TextStyle( style: TextStyle(
@ -75,19 +75,19 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
return Container( return Container(
color: Color(0xffffffff), color: Color(0xffffffff),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(32), left: 32.w,
top: Screenutil.length(24), top: 24.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Image.asset( Image.asset(
AssetsImage.LOCATION, AssetsImage.LOCATION,
height: Screenutil.length(78), height: 78.w,
width: Screenutil.length(78), width: 78.w,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -101,7 +101,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: 16.w),
Text( Text(
'18809801254', '18809801254',
style: TextStyle( style: TextStyle(
@ -111,9 +111,9 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
), ),
], ],
), ),
SizedBox(height: Screenutil.length(16)), SizedBox(height: 16.w),
Container( Container(
width: Screenutil.length(584), width: 584.w,
child: ExtendedText.rich( child: ExtendedText.rich(
TextSpan( TextSpan(
children: [ children: [
@ -150,8 +150,8 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
}, },
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.symmetric(vertical: Screenutil.length(6)), padding: EdgeInsets.symmetric(vertical: 6.w),
width: Screenutil.length(134), width: 134.w,
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all(color: BaseStyle.color999999, width: 0.5), border: Border.all(color: BaseStyle.color999999, width: 0.5),
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
@ -185,16 +185,16 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
children: [ children: [
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(179), height: 179.w,
width: Screenutil.length(173), width: 173.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(252), width: 252.w,
child: Text( child: Text(
content, content,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
@ -205,7 +205,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
), ),
), ),
), ),
SizedBox(height: Screenutil.length(16)), SizedBox(height: 16.w),
Text( Text(
specs, specs,
style: TextStyle( style: TextStyle(
@ -217,12 +217,12 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
), ),
], ],
), ),
SizedBox(height: Screenutil.length(73)), SizedBox(height: 73.w),
Row( Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Container( Container(
margin: EdgeInsets.only(right: Screenutil.length(25)), margin: EdgeInsets.only(right: 25.w),
child: Text( child: Text(
'实付款¥${payPrice}', '实付款¥${payPrice}',
style: TextStyle( style: TextStyle(
@ -238,7 +238,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
), ),
Positioned( Positioned(
top: 0, top: 0,
right: Screenutil.length(23), right: 23.w,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
@ -262,7 +262,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
), ),
), ),
Positioned( Positioned(
top: Screenutil.length(103), top: 103.w,
right: 0, right: 0,
child: _inkWellRefund(listContent,payPrice), child: _inkWellRefund(listContent,payPrice),
), ),
@ -275,12 +275,12 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
List<Map<String, dynamic>> listContent, double payPrice) { List<Map<String, dynamic>> listContent, double payPrice) {
return Container( return Container(
color: Color(0xffffffff), color: Color(0xffffffff),
margin: EdgeInsets.only(top: Screenutil.length(32)), margin: EdgeInsets.only(top: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
bottom: Screenutil.length(24), bottom: 24.w,
), ),
child: Column( child: Column(
children: listContent children: listContent
@ -302,11 +302,11 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
return Container( return Container(
color: Color(0xffffffff), color: Color(0xffffffff),
width: double.infinity, width: double.infinity,
margin: EdgeInsets.only(top: Screenutil.length(24)), margin: EdgeInsets.only(top: 24.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(31), left: 31.w,
bottom: Screenutil.length(39), bottom: 39.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -321,7 +321,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
Column( Column(
children: listOrderDetail children: listOrderDetail
.map((item) => Container( .map((item) => Container(
margin: EdgeInsets.only(top: Screenutil.length(22)), margin: EdgeInsets.only(top: 22.w),
child: Row( child: Row(
children: [ children: [
Text( Text(
@ -330,7 +330,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
fontSize: BaseStyle.fontSize24, fontSize: BaseStyle.fontSize24,
color: BaseStyle.color999999), color: BaseStyle.color999999),
), ),
SizedBox(width: Screenutil.length(75)), SizedBox(width: 75.w),
Text( Text(
item['subtitle'], item['subtitle'],
style: TextStyle( style: TextStyle(
@ -354,7 +354,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
alignment: Alignment.center, alignment: Alignment.center,
color: color, color: color,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26.5), vertical: 26.5.w,
), ),
child: Text( child: Text(
title, title,
@ -438,7 +438,7 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
bottom: 0, bottom: 0,
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(98), height: 98.w,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Row( child: Row(
children: _listBottom children: _listBottom

@ -46,11 +46,11 @@ class _OrderPageState extends State<OrderPage>
labelColor: BaseStyle.colorff8500, labelColor: BaseStyle.colorff8500,
unselectedLabelColor: BaseStyle.color333333, unselectedLabelColor: BaseStyle.color333333,
labelStyle: TextStyle( labelStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
unselectedLabelStyle: TextStyle( unselectedLabelStyle: TextStyle(
fontSize: Screenutil.size(28), fontSize: 28.sp,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
tabs: List.generate( tabs: List.generate(
@ -68,11 +68,11 @@ class _OrderPageState extends State<OrderPage>
return InkWell( return InkWell(
onTap: () {}, onTap: () {},
child: Container( child: Container(
margin: EdgeInsets.only(right: Screenutil.length(32)), margin: EdgeInsets.only(right: 32.w),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: Screenutil.length(40), left: 40.w,
top: Screenutil.length(20), top: 20.w,
bottom: Screenutil.length(20)), bottom: 20.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: BaseStyle.colorf3f3f3, color: BaseStyle.colorf3f3f3,
borderRadius: BorderRadius.all(Radius.circular(36)), borderRadius: BorderRadius.all(Radius.circular(36)),
@ -109,7 +109,7 @@ class _OrderPageState extends State<OrderPage>
backgroundColor: Color(0xffffffff), backgroundColor: Color(0xffffffff),
leading: InkWell( leading: InkWell(
onTap: () => Navigator.pop(context), onTap: () => Navigator.pop(context),
child: Icon(AntDesign.left, size: Screenutil.size(40)), child: Icon(AntDesign.left, size: 40.sp),
), ),
centerTitle: false, centerTitle: false,
title: _inkWellSearch(), title: _inkWellSearch(),

@ -41,7 +41,7 @@ class _PersonalIndexState extends State<PersonalIndex>
elevation: 0, elevation: 0,
stretch: true, stretch: true,
floating: true, floating: true,
expandedHeight: Screenutil.length(450) - height, expandedHeight: 450.w - height,
backgroundColor: Colors.white, backgroundColor: Colors.white,
flexibleSpace: FlexibleSpaceBar( flexibleSpace: FlexibleSpaceBar(
background: Stack( background: Stack(
@ -63,8 +63,8 @@ class _PersonalIndexState extends State<PersonalIndex>
Spacer(), Spacer(),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(175), top: 175.w,
left: Screenutil.length(32)), left: 32.w),
child: Row( child: Row(
children: [ children: [
Container( Container(
@ -72,8 +72,8 @@ class _PersonalIndexState extends State<PersonalIndex>
child: CachedImageWrapper( child: CachedImageWrapper(
url: url:
'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1851283359,3457678391&fm=26&gp=0.jpg', 'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1851283359,3457678391&fm=26&gp=0.jpg',
width: Screenutil.length(106), width: 106.w,
height: Screenutil.length(106), height: 106.w,
isSigned: userProvider.isSigned, isSigned: userProvider.isSigned,
), ),
), ),
@ -84,7 +84,7 @@ class _PersonalIndexState extends State<PersonalIndex>
}, },
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: Screenutil.length(16)), left: 16.w),
child: userProvider.isSigned child: userProvider.isSigned
? Text( ? Text(
'Cheailune', 'Cheailune',
@ -106,14 +106,14 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(38), top: 38.w,
left: Screenutil.length(36), left: 36.w,
right: Screenutil.length(36), right: 36.w,
), ),
child: Image.asset( child: Image.asset(
'assets/images/member_bg.png', 'assets/images/member_bg.png',
width: Screenutil.length(678), width: 678.w,
height: Screenutil.length(129), height: 129.w,
), ),
), ),
], ],
@ -129,7 +129,7 @@ class _PersonalIndexState extends State<PersonalIndex>
Container _containerBar(String title) { Container _containerBar(String title) {
return Container( return Container(
color: title == '我的物业' ? Colors.white : BaseStyle.colorf9f9f9, color: title == '我的物业' ? Colors.white : BaseStyle.colorf9f9f9,
padding: EdgeInsets.all(title == '我的物业' ? 0 : Screenutil.length(32)), padding: EdgeInsets.all(title == '我的物业' ? 0 : 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -159,7 +159,7 @@ class _PersonalIndexState extends State<PersonalIndex>
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(width: Screenutil.length(8)), SizedBox(width: 8.w),
Icon( Icon(
AntDesign.right, AntDesign.right,
size: BaseStyle.fontSize28, size: BaseStyle.fontSize28,
@ -186,7 +186,7 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
SliverToBoxAdapter( SliverToBoxAdapter(
child: Container( child: Container(
margin: EdgeInsets.only(top: Screenutil.length(10)), margin: EdgeInsets.only(top: 10.w),
color: BaseStyle.colorf9f9f9, color: BaseStyle.colorf9f9f9,
child: GridButton( child: GridButton(
gridList: AssetsImage.orderGridList, gridList: AssetsImage.orderGridList,
@ -197,9 +197,9 @@ class _PersonalIndexState extends State<PersonalIndex>
SliverToBoxAdapter( SliverToBoxAdapter(
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32)), right: 32.w),
child: Divider( child: Divider(
color: Color(0xffd8d8d8), color: Color(0xffd8d8d8),
), ),
@ -211,7 +211,7 @@ class _PersonalIndexState extends State<PersonalIndex>
SliverToBoxAdapter( SliverToBoxAdapter(
child: Container( child: Container(
color: BaseStyle.colorf9f9f9, color: BaseStyle.colorf9f9f9,
margin: EdgeInsets.only(top: Screenutil.length(10)), margin: EdgeInsets.only(top: 10.w),
alignment: Alignment.center, alignment: Alignment.center,
child: GridButton( child: GridButton(
gridList: AssetsImage.orderGridList.take(3).skip(1).toList(), gridList: AssetsImage.orderGridList.take(3).skip(1).toList(),
@ -236,8 +236,8 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
], ],
), ),
margin: EdgeInsets.all(Screenutil.length(20)), margin: EdgeInsets.all(20.w),
padding: EdgeInsets.all(Screenutil.length(12)), padding: EdgeInsets.all(12.w),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [

@ -25,7 +25,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
elevation: 0, elevation: 0,
backgroundColor: BaseStyle.colorffd000, backgroundColor: BaseStyle.colorffd000,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -59,13 +59,13 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
Container _containerRefundPrice(double payPrice) { Container _containerRefundPrice(double payPrice) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(22), top: 22.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
color: Colors.white, color: Colors.white,
child: Container( child: Container(
padding: EdgeInsets.only(bottom: Screenutil.length(26)), padding: EdgeInsets.only(bottom: 26.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)), bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
@ -97,13 +97,13 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
Container _containerRefundTextField() { Container _containerRefundTextField() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(22), top: 22.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
color: Colors.white, color: Colors.white,
child: Container( child: Container(
padding: EdgeInsets.only(bottom: Screenutil.length(26)), padding: EdgeInsets.only(bottom: 26.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)), bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
@ -118,7 +118,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(23)), SizedBox(height: 23.w),
TextFormField( TextFormField(
cursorColor: Color(0xffffc40c), cursorColor: Color(0xffffc40c),
style: TextStyle( style: TextStyle(
@ -130,8 +130,8 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
contentPadding: EdgeInsets.only( contentPadding: EdgeInsets.only(
top: Screenutil.length(0), top: 0.w,
bottom: Screenutil.length(0), bottom: 0.w,
), ),
hintText: hintText, hintText: hintText,
border: InputBorder.none, //线 border: InputBorder.none, //线
@ -157,7 +157,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
alignment: Alignment.center, alignment: Alignment.center,
color: BaseStyle.colorffc40c, color: BaseStyle.colorffc40c,
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: Screenutil.length(26.5), vertical: 26.5.w,
), ),
child: Text( child: Text(
'提交', '提交',
@ -193,11 +193,11 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
children: [ children: [
Column( Column(
children: [ children: [
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
_containerContentList( _containerContentList(
widget.bundle.getMap('details')['listContent'], widget.bundle.getMap('details')['listContent'],
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
RefundTileCard( RefundTileCard(
listTile: listTile:
widget.bundle.getMap('details')['isRefundGood'] widget.bundle.getMap('details')['isRefundGood']
@ -205,7 +205,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
: _listTile.take(1).toList()), : _listTile.take(1).toList()),
_containerRefundPrice( _containerRefundPrice(
widget.bundle.getMap('details')['payPrice']), widget.bundle.getMap('details')['payPrice']),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
_containerRefundTextField(), _containerRefundTextField(),
], ],
), ),
@ -213,7 +213,7 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
bottom: 0, bottom: 0,
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: Screenutil.length(98), height: 98.w,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Row(children: [Expanded(child: _inkWellBottom())]), child: Row(children: [Expanded(child: _inkWellBottom())]),
), ),

@ -22,7 +22,7 @@ class _RefundSelectPageState extends State<RefundSelectPage> {
elevation: 0, elevation: 0,
backgroundColor: BaseStyle.colorffd000, backgroundColor: BaseStyle.colorffd000,
leading: IconButton( leading: IconButton(
icon: Icon(AntDesign.left, size: Screenutil.size(40)), icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
@ -89,11 +89,11 @@ class _RefundSelectPageState extends State<RefundSelectPage> {
appBar: _appBar(), appBar: _appBar(),
body: ListView( body: ListView(
children: [ children: [
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
_containerContentList( _containerContentList(
widget.bundle.getMap('details')['listContent'], widget.bundle.getMap('details')['listContent'],
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
RefundTileCard(listTile: _listTile) RefundTileCard(listTile: _listTile)
], ],
), ),

@ -26,7 +26,7 @@ class _OrderCardState extends State<OrderCard> {
Container _containerStatus(String status) { Container _containerStatus(String status) {
return Container( return Container(
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only(bottom: Screenutil.length(13)), padding: EdgeInsets.only(bottom: 13.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: border:
Border(bottom: BorderSide(color: Color(0xffd8d8d8), width: 0.5)), Border(bottom: BorderSide(color: Color(0xffd8d8d8), width: 0.5)),
@ -45,7 +45,7 @@ class _OrderCardState extends State<OrderCard> {
Container _containerContent( Container _containerContent(
String imagePath, content, specs, double price, int shopNum) { String imagePath, content, specs, double price, int shopNum) {
return Container( return Container(
margin: EdgeInsets.only(top: Screenutil.length(24)), margin: EdgeInsets.only(top: 24.w),
child: Stack( child: Stack(
children: [ children: [
Row( Row(
@ -54,16 +54,16 @@ class _OrderCardState extends State<OrderCard> {
children: [ children: [
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(179), height: 179.w,
width: Screenutil.length(173), width: 173.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(262), width: 262.w,
child: Text( child: Text(
content, content,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
@ -74,7 +74,7 @@ class _OrderCardState extends State<OrderCard> {
), ),
), ),
), ),
SizedBox(height: Screenutil.length(16)), SizedBox(height: 16.w),
Text( Text(
specs, specs,
style: TextStyle( style: TextStyle(
@ -88,7 +88,7 @@ class _OrderCardState extends State<OrderCard> {
), ),
Positioned( Positioned(
top: 0, top: 0,
right: Screenutil.length(8), right: 8.w,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
@ -134,7 +134,7 @@ class _OrderCardState extends State<OrderCard> {
Container _containerPayInfo(double totalPrice, payPrice) { Container _containerPayInfo(double totalPrice, payPrice) {
return Container( return Container(
margin: EdgeInsets.only(right: Screenutil.length(8)), margin: EdgeInsets.only(right: 8.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
@ -145,7 +145,7 @@ class _OrderCardState extends State<OrderCard> {
color: BaseStyle.color999999, color: BaseStyle.color999999,
), ),
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: 16.w),
Text( Text(
'实付款¥${payPrice}', '实付款¥${payPrice}',
style: TextStyle( style: TextStyle(
@ -188,10 +188,10 @@ class _OrderCardState extends State<OrderCard> {
} }
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: Screenutil.length(16)), margin: EdgeInsets.only(left: 16.w),
alignment: Alignment.center, alignment: Alignment.center,
width: Screenutil.length(171), width: 171.w,
height: Screenutil.length(60), height: 60.w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(30)), borderRadius: BorderRadius.all(Radius.circular(30)),
border: Border.all(color: buttonColor, width: 1), border: Border.all(color: buttonColor, width: 1),
@ -210,8 +210,8 @@ class _OrderCardState extends State<OrderCard> {
Container _containerButtonList(List<Map<String, dynamic>> listButton) { Container _containerButtonList(List<Map<String, dynamic>> listButton) {
return Container( return Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(42), top: 42.w,
right: Screenutil.length(8), right: 8.w,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
@ -249,15 +249,15 @@ class _OrderCardState extends State<OrderCard> {
], ],
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(18), top: 18.w,
left: Screenutil.length(20), left: 20.w,
right: Screenutil.length(16), right: 16.w,
bottom: Screenutil.length(42), bottom: 42.w,
), ),
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: Screenutil.length(24), top: 24.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

@ -13,9 +13,9 @@ class RefundShopCard extends StatelessWidget {
return Container( return Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(32), top: 32.w,
left: Screenutil.length(32), left: 32.w,
bottom: Screenutil.length(32), bottom: 32.w,
), ),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -23,16 +23,16 @@ class RefundShopCard extends StatelessWidget {
children: [ children: [
Image.asset( Image.asset(
imagePath, imagePath,
height: Screenutil.length(179), height: 179.w,
width: Screenutil.length(173), width: 173.w,
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
SizedBox(width: Screenutil.length(24)), SizedBox(width: 24.w),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: Screenutil.length(458), width: 458.w,
child: Text( child: Text(
content, content,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
@ -43,9 +43,9 @@ class RefundShopCard extends StatelessWidget {
), ),
), ),
), ),
SizedBox(height: Screenutil.length(8)), SizedBox(height: 8.w),
Container( Container(
width: Screenutil.length(456), width: 456.w,
child: Text( child: Text(
specs, specs,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,

@ -16,7 +16,7 @@ class _RefundTileCardState extends State<RefundTileCard> {
Container _refundTile(String title, subtitle) { Container _refundTile(String title, subtitle) {
return Container( return Container(
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only(bottom: Screenutil.length(26)), padding: EdgeInsets.only(bottom: 26.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)), bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
@ -31,7 +31,7 @@ class _RefundTileCardState extends State<RefundTileCard> {
color: BaseStyle.color333333, color: BaseStyle.color333333,
), ),
), ),
SizedBox(height: Screenutil.length(24)), SizedBox(height: 24.w),
Text( Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
@ -56,9 +56,9 @@ class _RefundTileCardState extends State<RefundTileCard> {
child: Container( child: Container(
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: Screenutil.length(22), top: 22.w,
left: Screenutil.length(32), left: 32.w,
right: Screenutil.length(32), right: 32.w,
), ),
color: Colors.white, color: Colors.white,
child: Stack( child: Stack(
@ -69,11 +69,11 @@ class _RefundTileCardState extends State<RefundTileCard> {
), ),
item['isRight'] item['isRight']
? Positioned( ? Positioned(
top: Screenutil.length(45), top: 45.w,
right: 0, right: 0,
child: Icon( child: Icon(
AntDesign.right, AntDesign.right,
size: Screenutil.size(40), size: 40.sp,
color: BaseStyle.colord8d8d8, color: BaseStyle.colord8d8d8,
), ),
) )

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save