From 630f5c153006bf6b593e59d8335793fc5d42497e Mon Sep 17 00:00:00 2001 From: Abdullah Alassaf Date: Thu, 4 Jul 2024 15:15:13 +0300 Subject: [PATCH] Fixed a design issue and updated the build number --- .../view/widgets/ACs/ac_interface.dart | 88 ++++++++++--------- pubspec.yaml | 2 +- 2 files changed, 46 insertions(+), 44 deletions(-) diff --git a/lib/features/devices/view/widgets/ACs/ac_interface.dart b/lib/features/devices/view/widgets/ACs/ac_interface.dart index be6eb4f..852c3e6 100644 --- a/lib/features/devices/view/widgets/ACs/ac_interface.dart +++ b/lib/features/devices/view/widgets/ACs/ac_interface.dart @@ -53,54 +53,56 @@ class AcInterface extends StatelessWidget { // extendBodyBehindAppBar: true, // extendBody: true, // body: - SingleChildScrollView( - child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - const SizedBox( - height: 20, - ), - DefaultContainer( - height: 65, - padding: const EdgeInsets.all(15), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - BodyLarge(text: statusModel.acSwitch ? 'On' : 'Off'), - GestureDetector( - onTap: () { - BlocProvider.of(context) - .add(AcSwitch(acSwitch: statusModel.acSwitch)); - }, - child: SvgPicture.asset(Assets.acSwitchIcon)) - ], + ListView( + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const SizedBox( + height: 20, ), - ), - const SizedBox( - height: 10, - ), - ConstrainedBox( - constraints: const BoxConstraints( - maxHeight: 380, + DefaultContainer( + height: 65, + padding: const EdgeInsets.all(15), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + BodyLarge(text: statusModel.acSwitch ? 'On' : 'Off'), + GestureDetector( + onTap: () { + BlocProvider.of(context) + .add(AcSwitch(acSwitch: statusModel.acSwitch)); + }, + child: SvgPicture.asset(Assets.acSwitchIcon)) + ], + ), ), - child: AcInterfaceTempUnit( - acDevice: ac, + const SizedBox( + height: 10, ), - ), - const SizedBox( - height: 10, - ), - ConstrainedBox( - constraints: const BoxConstraints( - maxHeight: 130, + ConstrainedBox( + constraints: const BoxConstraints( + maxHeight: 380, + ), + child: AcInterfaceTempUnit( + acDevice: ac, + ), ), - child: AcInterfaceControls( - deviceModel: ac, - deviceStatus: statusModel, + const SizedBox( + height: 10, ), - ), - ], - ), + ConstrainedBox( + constraints: const BoxConstraints( + maxHeight: 130, + ), + child: AcInterfaceControls( + deviceModel: ac, + deviceStatus: statusModel, + ), + ), + ], + ), + ], ); // ); }, diff --git a/pubspec.yaml b/pubspec.yaml index 59f680d..0dbf15a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: This is the mobile application project, developed with Flutter for # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 1.0.0+10 +version: 1.0.1+11 environment: sdk: ">=3.0.6 <4.0.0"