You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
222 lines
8.0 KiB
222 lines
8.0 KiB
import 'package:flutter/cupertino.dart'; |
|
import 'package:flutter/material.dart'; |
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
import 'package:huixiang/utils/font_weight.dart'; |
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import '../../generated/l10n.dart'; |
|
|
|
class HappyHelpFarmers extends StatefulWidget { |
|
@override |
|
State<StatefulWidget> createState() { |
|
return _HappyHelpFarmers(); |
|
} |
|
} |
|
|
|
class _HappyHelpFarmers extends State<HappyHelpFarmers> { |
|
ApiService apiService; |
|
|
|
@override |
|
void initState() { |
|
super.initState(); |
|
} |
|
|
|
|
|
@override |
|
Widget build(BuildContext context) { |
|
return Container( |
|
margin: EdgeInsets.only(top: 24.h,left:10.w,right: 10.w), |
|
child:Column( |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
children: [ |
|
Text( |
|
S.of(context).zhunongzhuanqu, |
|
style: TextStyle( |
|
color: Color(0xFF0D0D0D), |
|
fontSize: 15.sp, |
|
fontWeight: FontWeight.bold, |
|
), |
|
), |
|
SizedBox(height: 16.w,), |
|
GestureDetector( |
|
behavior: HitTestBehavior.translucent, |
|
onTap: (){ |
|
Navigator.of(context).pushNamed('/router/help_farmers_page'); |
|
}, |
|
child: Container( |
|
padding: EdgeInsets.only(top: 12.h,left: 13.w,right: 7.w,bottom:20.h), |
|
decoration: BoxDecoration( |
|
borderRadius: BorderRadius.circular(6), |
|
color: Colors.white, |
|
boxShadow: [ |
|
BoxShadow( |
|
color: Color(0x08203303).withAlpha(3), |
|
offset: Offset(0, 2), |
|
blurRadius: 4, |
|
spreadRadius: 0, |
|
) |
|
], |
|
), |
|
child: Column( |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
children: [ |
|
Row( |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
children: [ |
|
Image.asset( |
|
"assets/image/help_farmers_logo.webp", |
|
fit: BoxFit.fill, |
|
width: 109.w, |
|
height: 62.h, |
|
), |
|
SizedBox(width: 8.w,), |
|
Expanded(child: Column( |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Text( |
|
S.of(context).kuailezhunong, |
|
style: TextStyle( |
|
color: Color(0xFF0D0D0D), |
|
fontSize: 14.sp, |
|
fontWeight: FontWeight.bold, |
|
), |
|
), |
|
SizedBox(height:5.h,), |
|
Text( |
|
S.of(context).zhunong1, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 11.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
) |
|
], |
|
)), |
|
Text( |
|
S.of(context).jinruzhuanqu, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 12.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
), |
|
Image.asset( |
|
"assets/image/icon_right_z.webp", |
|
fit: BoxFit.fill, |
|
width: 13, |
|
height: 13, |
|
color: Color(0xFF353535), |
|
), |
|
], |
|
), |
|
SizedBox(height:20.h,), |
|
Row( |
|
children: [ |
|
SizedBox(width:7.w,), |
|
Expanded(child: Column( |
|
children: [ |
|
Image.asset( |
|
"assets/image/farmers_zp.webp", |
|
fit: BoxFit.fill, |
|
width: 40, |
|
height: 40, |
|
), |
|
SizedBox(height: 10.h,), |
|
Text( |
|
S.of(context).shengxianzhaipei, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 12.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
), |
|
], |
|
),), |
|
Container( |
|
color: Color(0xFF32A060), |
|
width: 0.5.w, |
|
height: 66.h, |
|
), |
|
Expanded(child:Column( |
|
children: [ |
|
Image.asset( |
|
"assets/image/farmers_cg.webp", |
|
fit: BoxFit.fill, |
|
width: 40, |
|
height: 40, |
|
), |
|
SizedBox(height: 10.h,), |
|
Text( |
|
S.of(context).shangpincaigou, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 12.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
), |
|
], |
|
)), |
|
Container( |
|
color: Color(0xFF32A060), |
|
width: 0.5.w, |
|
height: 66.h, |
|
), |
|
Expanded(child:Column( |
|
children: [ |
|
Image.asset( |
|
"assets/image/farmers_cy.webp", |
|
fit: BoxFit.fill, |
|
width: 40, |
|
height: 40, |
|
), |
|
SizedBox(height: 10.h,), |
|
Text( |
|
S.of(context).canyingfuwu, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 12.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
), |
|
|
|
], |
|
)), |
|
Container( |
|
color: Color(0xFF32A060), |
|
width: 0.5.w, |
|
height: 66.h, |
|
), |
|
Expanded(child:Column( |
|
children: [ |
|
Image.asset( |
|
"assets/image/farmers_tj.webp", |
|
fit: BoxFit.fill, |
|
width: 40, |
|
height: 40, |
|
), |
|
SizedBox(height:10.h,), |
|
Text( |
|
S.of(context).qiyetuanjian, |
|
style: TextStyle( |
|
color: Color(0xFF4D4D4D), |
|
fontSize: 12.sp, |
|
fontWeight: MyFontWeight.medium, |
|
), |
|
), |
|
], |
|
)), |
|
SizedBox(width:13.w,), |
|
], |
|
) |
|
], |
|
), |
|
), |
|
) |
|
], |
|
), |
|
); |
|
} |
|
}
|
|
|