Skip to content

Commit

Permalink
Improve layout for dark mode activation code textfield (#1765)
Browse files Browse the repository at this point in the history
| Before | After |
|--------|--------|
| ![Simulator Screenshot - iPhone 16 - 2024-10-14 at 22 12
58](https://github.com/user-attachments/assets/168494ad-3927-4e10-b1c2-0250a558bc16)
| ![Simulator Screenshot - iPhone 16 - 2024-10-14 at 22 12
30](https://github.com/user-attachments/assets/1282339e-8899-4123-9393-3b4b41ee7a22)
|
  • Loading branch information
nilsreichardt authored Oct 15, 2024
1 parent 09eee42 commit a0d41f0
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ class EnterActivationCodeTextField extends StatelessWidget
child: Theme(
data: Theme.of(context).copyWith(
primaryColor: Colors.white,
colorScheme:
ColorScheme.fromSwatch().copyWith(secondary: Colors.white),
colorScheme: Theme.of(context).isDarkTheme
? null
: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.white),
),
child: TextField(
maxLines: 1,
Expand All @@ -44,6 +46,14 @@ class EnterActivationCodeTextField extends StatelessWidget
onEditingComplete: () => onSend(context, bloc),
decoration: InputDecoration(
border: const OutlineInputBorder(),
focusedBorder: Theme.of(context)
.inputDecorationTheme
.focusedBorder
?.copyWith(
borderSide: const BorderSide(
color: Colors.white,
),
),
labelText: 'Aktivierungscode',
hintText: "z.B. NavigationV2",
labelStyle: const TextStyle(color: Colors.white),
Expand Down

0 comments on commit a0d41f0

Please sign in to comment.