push door lock and living room batch design

This commit is contained in:
ashrafzarkanisala
2024-09-12 11:07:50 +03:00
parent c3d8e6a52e
commit 28579e0778
15 changed files with 241 additions and 68 deletions

View File

@ -22,8 +22,8 @@ class DeviceBatchControlDialog extends StatelessWidget
borderRadius: BorderRadius.circular(20),
),
child: SizedBox(
width: 798,
height: context.screenHeight * 0.7,
width: devices.length < 3 ? 500 : 798,
// height: context.screenHeight * 0.7,
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
@ -34,13 +34,25 @@ class DeviceBatchControlDialog extends StatelessWidget
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const SizedBox(),
Text(
devices.first.categoryName ?? 'Device Control',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 22,
color: ColorsManager.dialogBlueTitle,
),
Column(
children: [
Text(
devices.first.categoryName ?? 'Device Control',
style: context.textTheme.titleLarge!.copyWith(
color: ColorsManager.dialogBlueTitle,
fontWeight: FontWeight.bold,
),
),
const SizedBox(
height: 8,
),
Text(
"Batch Control",
style: context.textTheme.bodySmall!.copyWith(
color: ColorsManager.dialogBlueTitle,
),
),
],
),
Container(
width: 25,
@ -66,6 +78,7 @@ class DeviceBatchControlDialog extends StatelessWidget
),
],
),
const SizedBox(height: 20),
//// BUILD DEVICE CONTROLS
///