Last active
July 13, 2022 02:56
-
-
Save FlutterZeroGit/039fcac8946af529c1634539a61de015 to your computer and use it in GitHub Desktop.
Image.network
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 StatefulWidget { | |
@override | |
State<MyApp> createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
bool selected = false; | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar(title: Text('FlutterZero')), | |
body: Center( | |
child: Image.network( | |
'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl.jpg', | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment