Created
May 28, 2021 07:02
-
-
Save berkanaslan/17e61ad505e6d18a531cce58e04d6e95 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
void main() => runApp(App()); | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MultiProvider( | |
providers: [ | |
ChangeNotifierProvider(create: (_) => NavigationProvider()), | |
], | |
child: Builder( | |
builder: (context) { | |
return MaterialApp( | |
onGenerateRoute: NavigationProvider.of(context).onGenerateRoute, | |
); | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment