fix: Formatting and style

This commit is contained in:
Christian Pauly 2021-05-20 14:36:23 +02:00
parent 4f13473593
commit 2540a6c926
3 changed files with 9 additions and 7 deletions

View File

@ -99,7 +99,6 @@ abstract class FluffyThemes {
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
brightness: Brightness.light, brightness: Brightness.light,
color: Colors.white, color: Colors.white,
systemOverlayStyle: SystemUiOverlayStyle.dark,
textTheme: TextTheme( textTheme: TextTheme(
headline6: TextStyle( headline6: TextStyle(
color: Colors.black, color: Colors.black,
@ -178,7 +177,6 @@ abstract class FluffyThemes {
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
brightness: Brightness.dark, brightness: Brightness.dark,
color: Color(0xff1D1D1D), color: Color(0xff1D1D1D),
systemOverlayStyle: SystemUiOverlayStyle.light,
textTheme: TextTheme( textTheme: TextTheme(
headline6: TextStyle( headline6: TextStyle(
color: Colors.white, color: Colors.white,

View File

@ -80,9 +80,14 @@ class FluffyChatApp extends StatelessWidget {
builder: (context) { builder: (context) {
WidgetsBinding.instance.addPostFrameCallback((_) { WidgetsBinding.instance.addPostFrameCallback((_) {
SystemChrome.setSystemUIOverlayStyle( SystemChrome.setSystemUIOverlayStyle(
Theme.of(context).brightness == Brightness.light SystemUiOverlayStyle(
? SystemUiOverlayStyle.light statusBarColor: Colors.transparent,
: SystemUiOverlayStyle.dark, systemNavigationBarColor: Theme.of(context).backgroundColor,
systemNavigationBarIconBrightness:
Theme.of(context).brightness == Brightness.light
? Brightness.dark
: Brightness.light,
),
); );
}); });
return Matrix( return Matrix(

View File

@ -12,8 +12,7 @@ class Settings3PidUI extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
controller.request ??= controller.request ??= Matrix.of(context).client.getAccount3PIDs();
Matrix.of(context).client.getAccount3PIDs();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: BackButton(), leading: BackButton(),