Skip to content

Instantly share code, notes, and snippets.

@FlutterZeroGit
Last active July 13, 2022 02:56
Show Gist options
  • Save FlutterZeroGit/039fcac8946af529c1634539a61de015 to your computer and use it in GitHub Desktop.
Save FlutterZeroGit/039fcac8946af529c1634539a61de015 to your computer and use it in GitHub Desktop.
Image.network
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