保存应用添加历史

hmxc
小赖 4 years ago
parent dcfa4e7b8f
commit 0868d28b9b

@ -163,13 +163,6 @@ class _HomePageState extends State<HomePage>
radius: 8, radius: 8,
customWidget: ApplicationView(), customWidget: ApplicationView(),
), ),
ContainerComment(
radius: 8,
customWidget: GridButtons(
gridList: _gridList,
crossCount: 4,
),
),
// SingleAdSpace( // SingleAdSpace(
// imagePath: R.ASSETS_EXAMPLE_GUANGGAO2_PNG, // imagePath: R.ASSETS_EXAMPLE_GUANGGAO2_PNG,
// ), // ),

@ -40,6 +40,8 @@ class _SplashPageState extends State<SplashPage> {
//ensure call _originOp first. //ensure call _originOp first.
await _originOp(); await _originOp();
final userProvider = Provider.of<UserProvider>(context, listen: false); final userProvider = Provider.of<UserProvider>(context, listen: false);
final appProvider = Provider.of<AppProvider>(context, listen: false);
appProvider.initApplications();
//app init delay 2 second //app init delay 2 second
await Future.delayed(Duration(seconds: 2)); await Future.delayed(Duration(seconds: 2));
if (HiveStore.appBox.get('login') ?? false) { if (HiveStore.appBox.get('login') ?? false) {

Loading…
Cancel
Save