|
|
@@ -66,9 +66,101 @@ class RecordPage extends BasePage<RecordController> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
+ _buildAvailableTimeRemind(),
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+ Widget _buildAvailableTimeRemind() {
|
|
|
+ return Obx(() {
|
|
|
+ int? electric = controller.userInfo?.memberInfo?.electric;
|
|
|
+ return Visibility(
|
|
|
+ visible: electric != null &&
|
|
|
+ electric < 12 &&
|
|
|
+ !controller.isHideIntegrationInsufficient.value,
|
|
|
+ child: IntrinsicHeight(
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.bottomCenter,
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(
|
|
|
+ left: 16.w,
|
|
|
+ right: 16.w,
|
|
|
+ bottom: 200.h,
|
|
|
+ ),
|
|
|
+ child: Stack(
|
|
|
+ children: [
|
|
|
+ Align(
|
|
|
+ alignment: Alignment.bottomCenter,
|
|
|
+ child: Container(
|
|
|
+ width: double.infinity,
|
|
|
+ height: 48.w,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.circular(10.w),
|
|
|
+ gradient: LinearGradient(colors: [
|
|
|
+ '#8671FF'.color,
|
|
|
+ '#3E55FF'.color,
|
|
|
+ '#7E80FE'.color,
|
|
|
+ ], stops: const [
|
|
|
+ 0.0,
|
|
|
+ 0.7,
|
|
|
+ 1
|
|
|
+ ]),
|
|
|
+ ),
|
|
|
+ child: Stack(
|
|
|
+ children: [
|
|
|
+ Align(
|
|
|
+ alignment: const Alignment(-0.05, -0.15),
|
|
|
+ child: Assets
|
|
|
+ .images.iconRecordIntegrationInsufficient
|
|
|
+ .image(width: 153.w, height: 20.w),
|
|
|
+ ),
|
|
|
+ Align(
|
|
|
+ alignment: Alignment.centerRight,
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () =>
|
|
|
+ controller.onAvailableTimeClick(),
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.symmetric(
|
|
|
+ horizontal: 10.w, vertical: 4.w),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ gradient: RadialGradient(
|
|
|
+ center: Alignment.centerRight,
|
|
|
+ colors: [
|
|
|
+ "#E7F2FF".toColor(),
|
|
|
+ "#FFFFFF".toColor(),
|
|
|
+ "#F9E8FF".toColor()
|
|
|
+ ],
|
|
|
+ radius: 2),
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.circular(100.w),
|
|
|
+ ),
|
|
|
+ margin: EdgeInsets.only(right: 12.w),
|
|
|
+ child: Assets.images.iconRecordRecharge
|
|
|
+ .image(width: 39.w, height: 19.w)),
|
|
|
+ ))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Assets.images.iconRecordAvailableTime
|
|
|
+ .image(width: 88.w, height: 77.w),
|
|
|
+ Align(
|
|
|
+ alignment: Alignment.topRight,
|
|
|
+ child: GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ controller.onCloseAvailableTimeClick();
|
|
|
+ },
|
|
|
+ child: Assets
|
|
|
+ .images.iconRecordIntegrationInsufficientClose
|
|
|
+ .image(width: 18.w, height: 18.w),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ))),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
Widget _buildAddShortcut(bool visible) {
|
|
|
return GestureDetector(
|
|
|
onTap: () {
|