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.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			442 B
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			442 B
		
	
	
	
		
			Dart
		
	
| import 'package:mohem_flutter_app/provider/counter.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 MultiProvider(
 | |
|       providers: [
 | |
|         ChangeNotifierProvider(create: (_) => Counter()),
 | |
|       ],
 | |
|       child: child,
 | |
|     );
 | |
|   }
 | |
| }
 |