/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-01-19 16:44:35
 * @LastEditTime : 2023-05-16 09:57:49
 * @Description  : Do not edit
 */

import 'dart:io';

import 'package:app_package/app_package.dart';
import 'package:app_package/src/pages/login/index.dart';
import 'package:app_package/src/pages/main/index.dart';
import 'package:app_package/src/stores/push.dart';
import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
import 'package:wisdom_cli/wisdom_cli.dart';

part 'store.dart';
part 'view.dart';

// part 'components/list.dart'; 取消注释这段代码，然后“快速修复”--“代码块tplcomponent”，可快速创建组件
class SplashPage extends StatelessWidget {
  const SplashPage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (_) => _Store(context),
      child: _PageView(),
      lazy: false, //取消懒加载，懒加载可能会导致获取路由传参不准确
    );
  }
}
