Changed from to buttons design

This commit is contained in:
Juan Gilsanz Polo 2024-01-27 22:04:54 +01:00
parent ad3046a84b
commit 5d45829937
3 changed files with 22 additions and 12 deletions

View file

@ -741,8 +741,8 @@
"friday": "Friday", "friday": "Friday",
"saturday": "Saturday", "saturday": "Saturday",
"sunday": "Sunday", "sunday": "Sunday",
"from": "From: {from}", "from": "From",
"to": "To: {to}", "to": "To",
"selectStartTime": "Select start time", "selectStartTime": "Select start time",
"selectEndTime": "Select end time", "selectEndTime": "Select end time",
"startTimeBeforeEndTime": "Start time must be before end time.", "startTimeBeforeEndTime": "Start time must be before end time.",

View file

@ -741,8 +741,8 @@
"friday": "Viernes", "friday": "Viernes",
"saturday": "Sábado", "saturday": "Sábado",
"sunday": "Domingo", "sunday": "Domingo",
"from": "Desde: {from}", "from": "Desde",
"to": "Hasta: {to}", "to": "Hasta",
"selectStartTime": "Seleccionar hora de inicio", "selectStartTime": "Seleccionar hora de inicio",
"selectEndTime": "Seleccionar hora de fin", "selectEndTime": "Seleccionar hora de fin",
"startTimeBeforeEndTime": "La hora de inicio debe ser anterior a la hora de fin.", "startTimeBeforeEndTime": "La hora de inicio debe ser anterior a la hora de fin.",

View file

@ -236,10 +236,15 @@ class _BlockingScheduleModalState extends State<BlockingScheduleModal> {
); );
setState(() => _from = selected); setState(() => _from = selected);
}, },
child: Text( child: Padding(
AppLocalizations.of(context)!.from( padding: const EdgeInsets.symmetric(vertical: 4),
_from != null ? "${_from!.hour.toString().padLeft(2, '0')}:${_from!.minute.toString().padLeft(2, '0')}" : "--:--" child: Column(
) children: [
Text(AppLocalizations.of(context)!.from),
const SizedBox(height: 2),
Text(_from != null ? "${_from!.hour.toString().padLeft(2, '0')}:${_from!.minute.toString().padLeft(2, '0')}" : "--:--")
],
),
) )
), ),
ElevatedButton( ElevatedButton(
@ -252,10 +257,15 @@ class _BlockingScheduleModalState extends State<BlockingScheduleModal> {
); );
setState(() => _to = selected); setState(() => _to = selected);
}, },
child: Text( child: Padding(
AppLocalizations.of(context)!.to( padding: const EdgeInsets.symmetric(vertical: 4),
_to != null ? "${_to!.hour.toString().padLeft(2, '0')}:${_to!.minute.toString().padLeft(2, '0')}" : "--:--" child: Column(
) children: [
Text(AppLocalizations.of(context)!.to),
const SizedBox(height: 2),
Text(_to != null ? "${_to!.hour.toString().padLeft(2, '0')}:${_to!.minute.toString().padLeft(2, '0')}" : "--:--")
],
),
) )
), ),
], ],