mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Update dialog header to reflect sensor condition type dynamically
This commit is contained in:
@ -66,7 +66,9 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
const DialogHeader('Presence Sensor Condition'),
|
DialogHeader(
|
||||||
|
'Presence Sensor ${widget.dialogType == "IF" ? 'Conditions' : 'Functions'}',
|
||||||
|
),
|
||||||
Expanded(child: _buildMainContent(context, state)),
|
Expanded(child: _buildMainContent(context, state)),
|
||||||
DialogFooter(
|
DialogFooter(
|
||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
|
Reference in New Issue
Block a user