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> {
late int _selectedHour;
bool _isPm = true;
bool _isPm = false;
@override
void initState() {
@ -18,7 +18,7 @@ class _HourPickerDialogState extends State<HourPickerDialog> {
_selectedHour = widget.initialTime.hour > 12
? widget.initialTime.hour - 12
: widget.initialTime.hour;
_isPm = widget.initialTime.period == DayPeriod.am;
_isPm = widget.initialTime.period == DayPeriod.pm;
}
@override
@ -48,11 +48,11 @@ class _HourPickerDialogState extends State<HourPickerDialog> {
value: _isPm,
items: const [
DropdownMenuItem(
value: true,
value: false,
child: Text('AM'),
),
DropdownMenuItem(
value:false ,
value: true,
child: Text('PM'),
),
],

View File

@ -116,7 +116,7 @@ class DeviceManagementBody extends StatelessWidget with HelperResponsiveLayout {
? const EdgeInsets.all(30)
: const EdgeInsets.all(15),
child: DynamicTable(
withSelectAll: true,
withSelectAll: false,
cellDecoration: containerDecoration,
onRowSelected: (index, isSelected, row) {
final selectedDevice = devicesToShow[index];