Last active
February 9, 2022 19:52
-
-
Save chimon2000/80204cfea302bd8c4bb343ec96c04b93 to your computer and use it in GitHub Desktop.
state_example: app widget
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/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
void main() { | |
runApp(App()); | |
} | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return ProviderScope( | |
child: MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
), | |
home: SomePage(), //This is where our page will go, | |
), | |
); | |
} | |
} | |
class SomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return const Scaffold(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment