/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-03-04 16:06:21
 * @LastEditTime : 2023-05-25 15:38:19
 * @FilePath     : /wisdom-huiguanjia-app/oa_package/lib/src/pages/detail/index.dart
 * @Description  : Do not edit
 */
import 'package:flutter/material.dart';
import 'package:oa_package/src/view_models/private_detail_store.dart';
import 'package:wisdom_cli/wisdom_cli.dart';
import 'view.dart';
part 'index.g.dart';

///路由传递的参数
class DetailPageArguments {
  final String? id;
  final String? type;
  DetailPageArguments({
    this.id,
    this.type,
  });

  ///
  ///
  ///
  ///
  ///
  ///
  ///
//***以下为模板代码谨慎修改***
  factory DetailPageArguments.fromJson(Map<String, dynamic> json) {
    return _$DetailPageArgumentsFromJson(json);
  }
  factory DetailPageArguments.fromRouteArguments(BuildContext context) {
    return _$DetailPageArgumentsFromJson(
        (ModalRoute.of(context)?.settings.arguments ??
            new Map<String, dynamic>()) as Map<String, dynamic>);
  }
  Map<String, dynamic> toJson() => _$DetailPageArgumentsToJson(this);
}

///
///
///
///
///
//***以下为模板代码谨慎修改***
class DetailPage extends StatelessWidget {
  const DetailPage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(create: (_) => DetailStore(context)),
      ],
      child: DetailPageView(),
    );
  }
}
