Cheat Sheet: Flutter

The Setup for Windows: 

https://flutter.dev/docs/get-started/install/windows

To start with

import 'package:flutter/material.dart';

void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("My App"),
backgroundColor: Color.fromARGB(100, 128, 110, 110),
),
body: Center(
child: Image.asset("images/a_pic.png"),
),
),
),
);
}

Customize App Icon

Method 1. App Icon generator: appicon.io. Update the res folder (Android)

Method 2. Open Android Fold in Android Stutio (right click / flutter / Open ... in Android Studio); Right Click on res folder: New/Image Asset/Path (choose the icon image); Adjust, save and exit

Layout

cheatsheet

some code example