123456789101112131415161718 |
- import 'package:provider/provider.dart';
- import 'package:provider/single_child_widget.dart';
- import 'package:video/model/refreshModel.dart';
- import 'package:video/model/urlModel.dart';
- List<SingleChildWidget> providers = [
- ...independentServices,
- ];
- //独立的model
- List<SingleChildWidget> independentServices = [
- ChangeNotifierProvider<UrlInfo>(
- create: (context) => UrlInfo(),
- ),
- ChangeNotifierProvider<Refresh>(
- create: (context) => Refresh(),
- ),
- ];
|