Show Menu
Cheatography

Mobile Application Cheat Sheet by

NVS Cheatsheet for Mobile Application

Basics

General inform­ation

Flutter is a Open Source Develo­pme­nt-Kit from Google. It is used to create apps for Android, iOS, Windows, macOS, Linux, Google Fuchsia and the Web.
Flutter applic­ations are written in Dart and use many functions of this language.

Hello World

import 'package:flutter/material.dart';

void main() => runApp(HelloWorldApp());

class HelloWorldApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Hello World App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Hello World App'),
        ),
        body: Center(
          child: Text('Hello World'),
        ),
      ),
    );
  }
}
 

Icon

import 'package:flutter/material.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 Icon Tutorial',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}
 

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}
 

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('TutorialKart - Icon Tutorial'),
      ),
      body: Column(children: <Widget>[
        Center(child: Icon(Icons.directions_transit)),
      ]),
    );
  }
}
       
 

Comments

Happy to see your cheat sheet. I'd like to see more. It would be great to expand this some more to include resources for learning flutter and dart.
Thanks for creating.

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          jQuery Mobile Cheat Sheet

          More Cheat Sheets by bausac16

          Push Notifications Cheat Sheet
          Single-Area OSPF Cheat Sheet