Fix StyledToast
This commit is contained in:
parent
bed0d821e3
commit
12f4f6e192
|
@ -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 {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue