mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
fix changes
This commit is contained in:
@ -10,7 +10,7 @@ class HourPickerDialog extends StatefulWidget {
|
|||||||
|
|
||||||
class _HourPickerDialogState extends State<HourPickerDialog> {
|
class _HourPickerDialogState extends State<HourPickerDialog> {
|
||||||
late int _selectedHour;
|
late int _selectedHour;
|
||||||
bool _isPm = true;
|
bool _isPm = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -18,7 +18,7 @@ class _HourPickerDialogState extends State<HourPickerDialog> {
|
|||||||
_selectedHour = widget.initialTime.hour > 12
|
_selectedHour = widget.initialTime.hour > 12
|
||||||
? widget.initialTime.hour - 12
|
? widget.initialTime.hour - 12
|
||||||
: widget.initialTime.hour;
|
: widget.initialTime.hour;
|
||||||
_isPm = widget.initialTime.period == DayPeriod.am;
|
_isPm = widget.initialTime.period == DayPeriod.pm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -48,11 +48,11 @@ class _HourPickerDialogState extends State<HourPickerDialog> {
|
|||||||
value: _isPm,
|
value: _isPm,
|
||||||
items: const [
|
items: const [
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
value: true,
|
value: false,
|
||||||
child: Text('AM'),
|
child: Text('AM'),
|
||||||
),
|
),
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
value:false ,
|
value: true,
|
||||||
child: Text('PM'),
|
child: Text('PM'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -116,7 +116,7 @@ class DeviceManagementBody extends StatelessWidget with HelperResponsiveLayout {
|
|||||||
? const EdgeInsets.all(30)
|
? const EdgeInsets.all(30)
|
||||||
: const EdgeInsets.all(15),
|
: const EdgeInsets.all(15),
|
||||||
child: DynamicTable(
|
child: DynamicTable(
|
||||||
withSelectAll: true,
|
withSelectAll: false,
|
||||||
cellDecoration: containerDecoration,
|
cellDecoration: containerDecoration,
|
||||||
onRowSelected: (index, isSelected, row) {
|
onRowSelected: (index, isSelected, row) {
|
||||||
final selectedDevice = devicesToShow[index];
|
final selectedDevice = devicesToShow[index];
|
||||||
|
Reference in New Issue
Block a user