mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 23:27:25 +00:00
Merge pull request #39 from SyncrowIOT/bug_fixes_sprint_10
Bug fixes sprint 10
This commit is contained in:
@ -23,7 +23,7 @@ class _NotificationDialogState extends State<NotificationDialog> {
|
|||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 798,
|
width: 660,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: const EdgeInsets.all(20.0),
|
||||||
@ -70,8 +70,11 @@ class _NotificationDialogState extends State<NotificationDialog> {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
ToggleWidget(
|
SizedBox(
|
||||||
value: true,
|
width: 170,
|
||||||
|
height: 135,
|
||||||
|
child: ToggleWidget(
|
||||||
|
value: isLowBatteryNotificationEnabled,
|
||||||
code: 'notification',
|
code: 'notification',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
label: 'Low Battery',
|
label: 'Low Battery',
|
||||||
@ -82,8 +85,12 @@ class _NotificationDialogState extends State<NotificationDialog> {
|
|||||||
},
|
},
|
||||||
icon: '-1',
|
icon: '-1',
|
||||||
),
|
),
|
||||||
ToggleWidget(
|
),
|
||||||
value: true,
|
SizedBox(
|
||||||
|
width: 170,
|
||||||
|
height: 135,
|
||||||
|
child: ToggleWidget(
|
||||||
|
value: isClosingRemindersEnabled,
|
||||||
code: 'notification',
|
code: 'notification',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
label: 'Closing\nReminders',
|
label: 'Closing\nReminders',
|
||||||
@ -94,8 +101,12 @@ class _NotificationDialogState extends State<NotificationDialog> {
|
|||||||
},
|
},
|
||||||
icon: '-1',
|
icon: '-1',
|
||||||
),
|
),
|
||||||
ToggleWidget(
|
),
|
||||||
value: true,
|
SizedBox(
|
||||||
|
width: 170,
|
||||||
|
height: 135,
|
||||||
|
child: ToggleWidget(
|
||||||
|
value: isDoorAlarmEnabled,
|
||||||
code: 'notification',
|
code: 'notification',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
label: 'Door Alarm',
|
label: 'Door Alarm',
|
||||||
@ -106,6 +117,7 @@ class _NotificationDialogState extends State<NotificationDialog> {
|
|||||||
},
|
},
|
||||||
icon: '-1',
|
icon: '-1',
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -6,12 +6,13 @@ class WaterLeakNotificationDialog extends StatefulWidget {
|
|||||||
const WaterLeakNotificationDialog({super.key});
|
const WaterLeakNotificationDialog({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<WaterLeakNotificationDialog> createState() => _WaterLeakNotificationDialogState();
|
State<WaterLeakNotificationDialog> createState() => _NotificationDialogState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _WaterLeakNotificationDialogState extends State<WaterLeakNotificationDialog> {
|
class _NotificationDialogState extends State<WaterLeakNotificationDialog> {
|
||||||
bool isLowBatteryNotificationEnabled = true;
|
bool isLowBatteryNotificationEnabled = true;
|
||||||
bool isWaterLeakageNotificationEnabled = true;
|
bool isClosingRemindersEnabled = true;
|
||||||
|
bool isWaterLeakage = true;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -22,7 +23,7 @@ class _WaterLeakNotificationDialogState extends State<WaterLeakNotificationDialo
|
|||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 400,
|
width: 560,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: const EdgeInsets.all(20.0),
|
||||||
@ -69,8 +70,11 @@ class _WaterLeakNotificationDialogState extends State<WaterLeakNotificationDialo
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
ToggleWidget(
|
SizedBox(
|
||||||
value: true,
|
width: 170,
|
||||||
|
height: 135,
|
||||||
|
child: ToggleWidget(
|
||||||
|
value: isLowBatteryNotificationEnabled,
|
||||||
code: 'notification',
|
code: 'notification',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
label: 'Low Battery',
|
label: 'Low Battery',
|
||||||
@ -81,18 +85,23 @@ class _WaterLeakNotificationDialogState extends State<WaterLeakNotificationDialo
|
|||||||
},
|
},
|
||||||
icon: '-1',
|
icon: '-1',
|
||||||
),
|
),
|
||||||
ToggleWidget(
|
),
|
||||||
value: true,
|
SizedBox(
|
||||||
|
width: 170,
|
||||||
|
height: 135,
|
||||||
|
child: ToggleWidget(
|
||||||
|
value: isWaterLeakage,
|
||||||
code: 'notification',
|
code: 'notification',
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
label: 'Water Leakage',
|
label: 'Water Leakage',
|
||||||
onChange: (v) {
|
onChange: (v) {
|
||||||
setState(() {
|
setState(() {
|
||||||
isWaterLeakageNotificationEnabled = v;
|
isWaterLeakage = v;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: '-1',
|
icon: '-1',
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user