/*
 * @Author: XianKaiQun
 * @Date: 2020-04-21 15:20:24
 * @LastEditors  : WuWei
 * @LastEditTime : 2022-02-23 15:20:35
 * @Descripttion: 
 */
import 'dart:io';
import 'package:app_package/app_package.dart';
import 'package:app_package/src/pages/work/index.dart';
import 'package:app_package/src/stores/app.dart';
import 'package:flutter/material.dart';
import 'package:wisdom_cli/wisdom_cli.dart';
// import 'package:app_package/src/pages/dynamic_menu/index.dart';
import 'package:app_package/src/pages/message/index.dart';
import 'package:app_package/src/pages/mine/index.dart';
// import 'package:oa_package/oa_package.dart' as oaPackage;
import 'package:news_package/src/pages/sass_index/index.dart';
import '../../assets.gen.dart';
import '../../stores/push.dart';
import '../../stores/update.dart';

// import '../../stores/push.dart';
// import 'package:business_package/business_package.dart' as businessPackage;
part 'store.dart';
part 'view.dart';

// part 'components/list.dart';
class MainPage extends StatelessWidget {
  const MainPage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (_) => _Store(context),
      child: _PageView(),
      lazy: false, //取消懒加载，懒加载可能会导致获取路由传参不准确
    );
  }
}
