Created
July 18, 2019 06:33
-
-
Save ShivamGoyal1899/59ab7f673b502e0278c0fe5ebaace8fc 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/cupertino.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:provider/provider.dart'; // NEW | |
import 'app.dart'; | |
import 'model/app_state_model.dart'; // NEW | |
void main() { | |
SystemChrome.setPreferredOrientations( | |
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); | |
return runApp( | |
ChangeNotifierProvider<AppStateModel>( // NEW | |
model: model, // NEW | |
child: CupertinoStoreApp(), // NEW | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment