Skip to content

Commit

Permalink
Fix statusbar color
Browse files Browse the repository at this point in the history
  • Loading branch information
flofriday committed Aug 16, 2021
1 parent 6cba01c commit 84b51ba
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
11 changes: 7 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,24 @@ class App extends StatelessWidget {
locale: Locale('en'),
theme: ThemeData(
brightness: Brightness.light,
appBarTheme: AppBarTheme(brightness: Brightness.dark),
accentColor: Colors.indigo,
primarySwatch: Colors.indigo,
scaffoldBackgroundColor: Colors.indigo[50],
cardTheme: CardTheme(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)))),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
),
),
darkTheme: ThemeData(
brightness: Brightness.dark,
accentColor: Colors.blue,
primarySwatch: Colors.blue,
//scaffoldBackgroundColor: Colors.blueGrey[50],
cardTheme: CardTheme(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)))),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
),
),
debugShowCheckedModeBanner: false,
home: MainPage(title: 'TU Addressbook'),
Expand Down
1 change: 0 additions & 1 deletion lib/screens/image_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ImageScreen extends StatelessWidget {
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
brightness: Brightness.dark,
foregroundColor: Colors.black,
backgroundColor: Color.fromARGB(0xAA, 0x00, 0x00, 0x00),
elevation: 0,
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class _LoginScreenState extends State<LoginScreen> {
title: Text("TISS Login"),
),
body: Padding(
padding: EdgeInsets.all(8),
padding: EdgeInsets.all(10),
child: ListView(
children: [
FutureBuilder(
Expand Down
12 changes: 7 additions & 5 deletions lib/screens/person_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ class PersonSearch extends SearchDelegate<Null> {
if (theme.brightness == Brightness.dark) return theme;

return theme.copyWith(
primaryColor: theme.cardColor,
primaryIconTheme: theme.primaryIconTheme.copyWith(color: Colors.grey),
primaryColorBrightness: MediaQuery.of(context).platformBrightness,
primaryTextTheme: theme.textTheme,
);
primaryColor: theme.cardColor,
primaryIconTheme: theme.primaryIconTheme.copyWith(color: Colors.grey),
primaryColorBrightness: MediaQuery.of(context).platformBrightness,
primaryTextTheme: theme.textTheme,
appBarTheme: AppBarTheme(
brightness: Brightness.light,
));
}

@override
Expand Down
12 changes: 7 additions & 5 deletions lib/screens/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ class _SettingsScreenState extends State<SettingsScreen> {
),
),
actions: <Widget>[
TextButton(
child: const Text('I will be quiet'),
onPressed: () {
Navigator.of(context).pop();
},
Center(
child: OutlinedButton(
child: const Text('I will be quiet'),
onPressed: () {
Navigator.of(context).pop();
},
),
),
],
);
Expand Down

0 comments on commit 84b51ba

Please sign in to comment.