Skip to content

Commit d58e475

Browse files
committed
fix: label textfield align to its end side
1 parent 59e21c7 commit d58e475

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

alarmate/lib/pages/alarm_registration.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class _AlarmRegistrationPageState extends State<AlarmRegistrationPage> {
1414
int _selectedHour = 1;
1515
int _selectedMinute = 00;
1616
bool _isPm = true;
17-
String _repeat = 'Repeat';
17+
String _repeat = 'Once';
1818
String _label = 'Label';
1919
String _sound = 'Sound';
2020
bool _snooze = true;
@@ -131,9 +131,9 @@ class _AlarmRegistrationPageState extends State<AlarmRegistrationPage> {
131131
margin: const EdgeInsets.all(8),
132132
child: Column(
133133
children: [
134-
_buildRow('Repeat', trailing: _repeat, onTap: () {
134+
_buildRow('Once', trailing: _repeat, onTap: () {
135135
setState(() {
136-
_repeat = _repeat == 'Repeat' ? 'Daily' : 'Repeat';
136+
_repeat = _repeat == 'Once' ? 'Daily' : 'Once';
137137
});
138138
}),
139139
Padding(
@@ -147,6 +147,7 @@ class _AlarmRegistrationPageState extends State<AlarmRegistrationPage> {
147147
? Expanded(
148148
child: TextField(
149149
controller: _labelController..text = _label,
150+
textAlign: TextAlign.end,
150151
autofocus: true,
151152
onSubmitted: (value) {
152153
setState(() {

0 commit comments

Comments
 (0)