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

View File

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

View File

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