/*
 * @Author: XianKaiQun
 * @Date: 2020-04-21 16:04:10
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-04-21 16:10:15
 * @Descripttion: 
 */
import 'dart:io';
import 'package:app_package/app_package.dart';
import 'package:app_package/src/api/message.dart';
import 'package:app_package/src/models/app_update.dart';
import 'package:app_package/src/models/message_count.dart';
import 'package:app_package/src/models/message_index_list.dart';
import 'package:app_package/src/stores/push.dart';
import 'package:flutter/material.dart';
import 'package:ota_update/ota_update.dart';
// import 'package:r_upgrade/r_upgrade.dart';
import 'package:wisdom_cli/wisdom_cli.dart';

import '../../api/update.dart';
import '../../stores/update.dart';
part 'store.dart';
part 'view.dart';

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