Fix StyledToast

This commit is contained in:
Christian Pauly 2020-05-13 09:10:29 +02:00
parent bed0d821e3
commit 12f4f6e192

View file

@ -29,7 +29,9 @@ class App extends StatelessWidget {
child: Builder( child: Builder(
builder: (BuildContext context) => ThemeSwitcherWidget( builder: (BuildContext context) => ThemeSwitcherWidget(
child: Builder( child: Builder(
builder: (BuildContext context) => StyledToast( // Workaround for: https://github.com/JackJonson/flutter_styled_toast/issues/7
builder: (BuildContext context) => MaterialApp(
home: StyledToast(
duration: Duration(seconds: 5), duration: Duration(seconds: 5),
child: MaterialApp( child: MaterialApp(
title: 'FluffyChat', title: 'FluffyChat',
@ -74,6 +76,7 @@ class App extends StatelessWidget {
), ),
), ),
), ),
),
); );
} }
} }