mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-08 15:47:47 +00:00
Changed from to buttons design
This commit is contained in:
parent
ad3046a84b
commit
5d45829937
3 changed files with 22 additions and 12 deletions
|
@ -236,10 +236,15 @@ class _BlockingScheduleModalState extends State<BlockingScheduleModal> {
|
|||
);
|
||||
setState(() => _from = selected);
|
||||
},
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.from(
|
||||
_from != null ? "${_from!.hour.toString().padLeft(2, '0')}:${_from!.minute.toString().padLeft(2, '0')}" : "--:--"
|
||||
)
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
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(
|
||||
|
@ -252,10 +257,15 @@ class _BlockingScheduleModalState extends State<BlockingScheduleModal> {
|
|||
);
|
||||
setState(() => _to = selected);
|
||||
},
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.to(
|
||||
_to != null ? "${_to!.hour.toString().padLeft(2, '0')}:${_to!.minute.toString().padLeft(2, '0')}" : "--:--"
|
||||
)
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
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')}" : "--:--")
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue