fix changes

This commit is contained in:
mohammad
2024-09-09 12:44:55 +03:00
parent 7f862fac2a
commit 8c3df39cf4
2 changed files with 5 additions and 5 deletions

View File

@ -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'),
), ),
], ],

View File

@ -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];