mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
add device filter and select time repeat widget
This commit is contained in:
@ -8,7 +8,6 @@ class DynamicTable extends StatefulWidget {
|
||||
final BoxDecoration? cellDecoration;
|
||||
final Size size;
|
||||
final bool withCheckBox;
|
||||
final void Function(bool?)? onChanged;
|
||||
final void Function(bool?)? selectAll;
|
||||
final void Function(int, bool?)? onRowCheckboxChanged;
|
||||
|
||||
@ -20,7 +19,6 @@ class DynamicTable extends StatefulWidget {
|
||||
required this.withCheckBox,
|
||||
this.headerDecoration,
|
||||
this.cellDecoration,
|
||||
this.onChanged,
|
||||
this.selectAll,
|
||||
this.onRowCheckboxChanged,
|
||||
}) : super(key: key);
|
||||
|
@ -151,9 +151,8 @@ class AddDeviceDialog extends StatelessWidget {
|
||||
const SizedBox(height: 20),
|
||||
Expanded(
|
||||
child: state is TableLoaded
|
||||
? Container(
|
||||
decoration: containerDecoration,
|
||||
child: DynamicTable(
|
||||
? DynamicTable(
|
||||
cellDecoration: containerDecoration,
|
||||
selectAll: (p0) {
|
||||
visitorBloc.selectedDeviceIds.clear();
|
||||
for (var item in state.data) {
|
||||
@ -176,7 +175,6 @@ class AddDeviceDialog extends StatelessWidget {
|
||||
item.online.value.toString(),
|
||||
];
|
||||
}).toList(),
|
||||
),
|
||||
)
|
||||
: const Center(child: CircularProgressIndicator()))
|
||||
],
|
||||
|
Reference in New Issue
Block a user