Created
December 21, 2019 16:55
-
-
Save Reprevise/431fcd9a1ea5748a82506f13be042e85 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/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: MyAppOne(), | |
); | |
} | |
} | |
class MyAppOne extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyAppOne> { | |
@override | |
void initState() { | |
super.initState(); | |
_fetchThings(); | |
} | |
void _fetchThings() async { | |
await Future.delayed(Duration(seconds: 10)); | |
print("HI"); | |
} | |
@override | |
Widget build(BuildContext context) { | |
return Center(child: CircularProgressIndicator()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment