fixed black background flashing before showing content on launch
This commit is contained in:
parent
760ee681d2
commit
1e7c682bee
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class _AvesAppState extends State<AvesApp> {
|
|||
future: _appSetup,
|
||||
builder: (context, AsyncSnapshot<void> snapshot) {
|
||||
if (snapshot.hasError) return const Icon(AIcons.error);
|
||||
if (snapshot.connectionState != ConnectionState.done) return const SizedBox.shrink();
|
||||
if (snapshot.connectionState != ConnectionState.done) return const Scaffold();
|
||||
return settings.hasAcceptedTerms ? const HomePage() : const WelcomePage();
|
||||
},
|
||||
),
|
||||
|
|
|
@ -96,7 +96,7 @@ class _HomePageState extends State<HomePage> {
|
|||
future: _appSetup,
|
||||
builder: (context, AsyncSnapshot<void> snapshot) {
|
||||
if (snapshot.hasError) return const Icon(AIcons.error);
|
||||
if (snapshot.connectionState != ConnectionState.done) return const SizedBox.shrink();
|
||||
if (snapshot.connectionState != ConnectionState.done) return const Scaffold();
|
||||
if (AvesApp.mode == AppMode.view) {
|
||||
return SingleFullscreenPage(entry: _viewerEntry);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue