Skip to content

Commit

Permalink
Fix theme issues on login page (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmendes authored Aug 22, 2023
2 parents 39f86c2 + af9d64f commit 192deef
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions uni/lib/view/login/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ class LoginPageViewState extends State<LoginPageView> {
'feup'
]; // May choose more than one faculty in the dropdown.

@override
void didChangeDependencies() {
super.didChangeDependencies();
setState(() {});
}

static final FocusNode usernameFocus = FocusNode();
static final FocusNode passwordFocus = FocusNode();

Expand Down Expand Up @@ -107,15 +101,13 @@ class LoginPageViewState extends State<LoginPageView> {

return Theme(
data: applicationLightTheme.copyWith(
// The handle color is not applying due to a Flutter bug:
// https://github.com/flutter/flutter/issues/74890
textSelectionTheme: const TextSelectionThemeData(
cursorColor: Colors.white,
selectionHandleColor: Colors.white,
),
),
child: Builder(
builder: (themeContext) => Scaffold(
builder: (context) => Scaffold(
backgroundColor: darkRed,
body: WillPopScope(
child: Padding(
Expand Down Expand Up @@ -164,7 +156,7 @@ class LoginPageViewState extends State<LoginPageView> {
],
),
),
onWillPop: () => onWillPop(themeContext),
onWillPop: () => onWillPop(context),
),
),
),
Expand Down

0 comments on commit 192deef

Please sign in to comment.