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

No comments yet. Add yours below!

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

          Single-Area OSPF Cheat Sheet
          Push Notifications Cheat Sheet