You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm-flutter-app/lib/config/app_provider.dart

20 lines
404 B
Dart

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class AppProvider extends StatelessWidget {
final Widget child;
AppProvider({required this.child});
@override
Widget build(BuildContext context) {
return child;
return MultiProvider(
providers: [
// ChangeNotifierProvider(create: (_) => Counter()),
],
child: child,
);
}
}