WIP: desktop loading order

This commit is contained in:
julian 2022-11-09 17:55:10 -06:00
parent 8b7e222d41
commit 2082e87553

View file

@ -60,6 +60,7 @@ import 'package:stackwallet/utilities/theme/dark_colors.dart';
import 'package:stackwallet/utilities/theme/light_colors.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/conditional_parent.dart';
import 'package:window_size/window_size.dart';
final openedFromSWBFileStringStateProvider =
@ -568,7 +569,12 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
_buildOutlineInputBorder(colorScheme.textFieldDefaultBG),
),
),
home: FutureBuilder(
home: ConditionalParent(
condition: Util.isDesktop,
builder: (child) {
return child;
},
child: FutureBuilder(
future: load(),
builder: (BuildContext context, AsyncSnapshot<void> snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
@ -613,6 +619,7 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
}
},
),
),
);
}
}