Show Menu
Cheatography

Flutter Cheat Sheet Cheat Sheet by [deleted]

Flutter ist ein Open-Source Entwicklungskit von Google. Es basiert auf der Programmiersprache Dart. Nachfolgend werden die wichtigsten Themen dargestellt.

Instal­lation

Test
Test 2

Erstellen der "­Hello World" Anwendung

import 'package:flutter/material.dart';
void main() => runApp​(He​llo​Wor​ldA​pp());
class HelloW​orldApp extends Statel​ess​Widget {
​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​
​@ov​erride
​Widget build(​Bui​ldC​ontext context) {
​ ​ ​return Materi​alApp(
​ ​ ​ ​ ​title: 'Hello World App',
​ ​ ​ ​ ​home: Scaffold(
​ ​ ​ ​ ​ ​ ​appBar:AppBar(
​ ​ ​ ​ ​ ​ ​ ​ ​title: Text('​Hello World App'), ​ ​ ​ ​ ​ ​ ),
​ ​ ​ ​ ​ ​ ​body:Center(
​ ​ ​ ​ ​ ​ ​ ​ ​child: Text('​Hello World'),
​ ​ ​ ​ ​ ​ ),
​ ​ ​ ​ ),
​ ​ );
​} }

Widget Layouts

Top Right
Center( child: Container( height: 120.0, width: 120.0, color: Colors.bl­ue[50], child: Align( alignment: Alignm­ent.to­pRight, child: Flutte­rLogo( size: 60, ), ), ), )
 

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

          Dart Datatypes (List - Map - Set - Queues - Enums) Cheat Sheet