diff --git a/uni/lib/view/login/login.dart b/uni/lib/view/login/login.dart index 06d56819b..7d45a6ab9 100644 --- a/uni/lib/view/login/login.dart +++ b/uni/lib/view/login/login.dart @@ -26,12 +26,6 @@ class LoginPageViewState extends State { '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(); @@ -107,15 +101,13 @@ class LoginPageViewState extends State { 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( @@ -164,7 +156,7 @@ class LoginPageViewState extends State { ], ), ), - onWillPop: () => onWillPop(themeContext), + onWillPop: () => onWillPop(context), ), ), ),