Skip to content

Instantly share code, notes, and snippets.

@imaNNeo
Created June 21, 2021 06:23
Show Gist options
  • Save imaNNeo/7bde85e179cbd6348734cbcc7a83732d to your computer and use it in GitHub Desktop.
Save imaNNeo/7bde85e179cbd6348734cbcc7a83732d to your computer and use it in GitHub Desktop.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Image.network('https://flutter4fun.com/wp-content/uploads/2021/06/1-1.jpg'),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment