mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Fix login route theme
This commit is contained in:
		@@ -18,12 +18,29 @@ class LoginScaffold extends StatelessWidget {
 | 
			
		||||
 | 
			
		||||
    final availableHeight =
 | 
			
		||||
        mediaQuery.size.height - mediaQuery.viewInsets.bottom;
 | 
			
		||||
    final minHeight = 400.0;
 | 
			
		||||
    final minHeight = 450.0;
 | 
			
		||||
 | 
			
		||||
    final contentHeight =
 | 
			
		||||
        availableHeight < minHeight ? minHeight : availableHeight;
 | 
			
		||||
 | 
			
		||||
    return Scaffold(
 | 
			
		||||
    return Theme(
 | 
			
		||||
      data: Theme.of(context).copyWith(
 | 
			
		||||
        hintColor: Colors.white,
 | 
			
		||||
        inputDecorationTheme: InputDecorationTheme(
 | 
			
		||||
          errorStyle: TextStyle(color: Colors.white),
 | 
			
		||||
          hintStyle: TextStyle(color: Colors.white),
 | 
			
		||||
          labelStyle: TextStyle(color: Colors.white),
 | 
			
		||||
          focusColor: Colors.white,
 | 
			
		||||
          fillColor: Colors.white,
 | 
			
		||||
          hoverColor: Colors.white,
 | 
			
		||||
        ),
 | 
			
		||||
        scaffoldBackgroundColor: Colors.indigo.shade900,
 | 
			
		||||
        textTheme: TextTheme(
 | 
			
		||||
          body1: TextStyle(color: Colors.white),
 | 
			
		||||
          button: TextStyle(color: Colors.white),
 | 
			
		||||
        ),
 | 
			
		||||
      ),
 | 
			
		||||
      child: Scaffold(
 | 
			
		||||
        body: SingleChildScrollView(
 | 
			
		||||
          child: Center(
 | 
			
		||||
            child: Container(
 | 
			
		||||
@@ -51,7 +68,7 @@ class LoginScaffold extends StatelessWidget {
 | 
			
		||||
            ),
 | 
			
		||||
          ),
 | 
			
		||||
        ),
 | 
			
		||||
      backgroundColor: Colors.indigo.shade900,
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user