Last active
August 17, 2020 17:20
-
-
Save AdamMusa/ed01843bc3a379313260745129763be5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_app/widgets/images_picker.dart'; | |
import 'package:flutter_app/widgets/cloudinary.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
import 'package:flutter_app/widgets/upload_images.dart'; | |
void main() { | |
runApp( | |
MultiProvider( | |
providers: [ | |
ChangeNotifierProvider( | |
create:(_)=> CloudImage(), | |
), | |
ChangeNotifierProvider( | |
create:(_)=> FetchImage(), | |
) | |
], | |
child: MyApp() | |
), | |
); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
color: Colors.white, | |
debugShowCheckedModeBanner: false, | |
home:MyHomePage() | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment