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

///路由传递的参数
class ProcessPageArguments {
  final String? id;
  final String? title;
  final formHtml;
  final formValue;
  final activeTaskId;
  ProcessPageArguments({
    this.id,
    this.title,
    this.formHtml,
    this.formValue,
    this.activeTaskId,
  });

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

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