mirror of
https://github.com/londonappbrewery/Flutter-Course-Resources/
synced 2024-11-15 22:04:54 +00:00
18 lines
438 B
Dart
18 lines
438 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
// The main function is the starting point of our Flutter apps.
|
||
|
void main() {
|
||
|
runApp(
|
||
|
MaterialApp(
|
||
|
home: Scaffold(
|
||
|
backgroundColor: Colors.blueGrey[800],
|
||
|
appBar: AppBar(
|
||
|
title: Text('I Am Rich'), backgroundColor: Colors.blueGrey[900]),
|
||
|
body: Center(
|
||
|
child: Image(image: AssetImage('images/diamond.png')),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|