Fix StyledToast
This commit is contained in:
parent
bed0d821e3
commit
12f4f6e192
|
@ -29,7 +29,9 @@ class App extends StatelessWidget {
|
|||
child: Builder(
|
||||
builder: (BuildContext context) => ThemeSwitcherWidget(
|
||||
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),
|
||||
child: MaterialApp(
|
||||
title: 'FluffyChat',
|
||||
|
@ -74,6 +76,7 @@ class App extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue