|
|
@@ -25,59 +25,59 @@ class MainDrawerView extends BasePage<MainDrawerController> {
|
|
|
SizedBox(height: 12.h),
|
|
|
buildUserInfoView(),
|
|
|
SizedBox(height: 12.h),
|
|
|
- Container(
|
|
|
- height: 72.w,
|
|
|
- decoration: BoxDecoration(
|
|
|
- borderRadius: BorderRadius.circular(12.w),
|
|
|
- border: Border.all(color: ColorName.white20, width: 2.w),
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: ['#5B618D'.toColor(), '#283B58'.toColor()],
|
|
|
- begin: Alignment.centerLeft,
|
|
|
- end: Alignment.centerRight,
|
|
|
- transform: const GradientRotation(-1.64061),
|
|
|
- stops: const [0, 1.0],
|
|
|
- ),
|
|
|
- ),
|
|
|
- child: Row(
|
|
|
- children: [
|
|
|
- SizedBox(width: 16.w),
|
|
|
- IntrinsicHeight(
|
|
|
- child: Column(
|
|
|
- children: [
|
|
|
- SizedBox(
|
|
|
- height: 18.h,
|
|
|
- child: Assets.images.iconChargeCenterTxt.image()),
|
|
|
- SizedBox(height: 4.h),
|
|
|
- Text(controller.electricityTxt,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 12.sp, color: ColorName.white))
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
- const Spacer(),
|
|
|
- DecoratedBox(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: Colors.white,
|
|
|
- borderRadius: BorderRadius.circular(12.w),
|
|
|
- ),
|
|
|
- child: Padding(
|
|
|
- padding: const EdgeInsets.symmetric(
|
|
|
- vertical: 4, horizontal: 11)
|
|
|
- .w,
|
|
|
- child: Text(
|
|
|
- StringName.mainGoCharge.tr,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14.sp,
|
|
|
- color: '#374668'.toColor(),
|
|
|
- fontWeight: FontWeight.bold),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- SizedBox(width: 18.w),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
- SizedBox(height: 12.h),
|
|
|
+ // Container(
|
|
|
+ // height: 72.w,
|
|
|
+ // decoration: BoxDecoration(
|
|
|
+ // borderRadius: BorderRadius.circular(12.w),
|
|
|
+ // border: Border.all(color: ColorName.white20, width: 2.w),
|
|
|
+ // gradient: LinearGradient(
|
|
|
+ // colors: ['#5B618D'.toColor(), '#283B58'.toColor()],
|
|
|
+ // begin: Alignment.centerLeft,
|
|
|
+ // end: Alignment.centerRight,
|
|
|
+ // transform: const GradientRotation(-1.64061),
|
|
|
+ // stops: const [0, 1.0],
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
+ // child: Row(
|
|
|
+ // children: [
|
|
|
+ // SizedBox(width: 16.w),
|
|
|
+ // IntrinsicHeight(
|
|
|
+ // child: Column(
|
|
|
+ // children: [
|
|
|
+ // SizedBox(
|
|
|
+ // height: 18.h,
|
|
|
+ // child: Assets.images.iconChargeCenterTxt.image()),
|
|
|
+ // SizedBox(height: 4.h),
|
|
|
+ // Text(controller.electricityTxt,
|
|
|
+ // style: TextStyle(
|
|
|
+ // fontSize: 12.sp, color: ColorName.white))
|
|
|
+ // ],
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
+ // const Spacer(),
|
|
|
+ // DecoratedBox(
|
|
|
+ // decoration: BoxDecoration(
|
|
|
+ // color: Colors.white,
|
|
|
+ // borderRadius: BorderRadius.circular(12.w),
|
|
|
+ // ),
|
|
|
+ // child: Padding(
|
|
|
+ // padding: const EdgeInsets.symmetric(
|
|
|
+ // vertical: 4, horizontal: 11)
|
|
|
+ // .w,
|
|
|
+ // child: Text(
|
|
|
+ // StringName.mainGoCharge.tr,
|
|
|
+ // style: TextStyle(
|
|
|
+ // fontSize: 14.sp,
|
|
|
+ // color: '#374668'.toColor(),
|
|
|
+ // fontWeight: FontWeight.bold),
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
+ // SizedBox(width: 18.w),
|
|
|
+ // ],
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
+ // SizedBox(height: 12.h),
|
|
|
_buildContent1(),
|
|
|
SizedBox(height: 8.h),
|
|
|
_buildContent2(),
|