Flutter Development

Up and running

Majid Hajian

mhadaily

Updated - Flutter2

mhadaily

Credit to: JDominik Roszkowski - https://codepen.io/orestesgaolin/pen/ExVboMY

https://chrome-trex-flutter.netlify.app/#/

Credit to: Joshua de Guzman - https://codepen.io/joshuadeguzman/pen/jObrzJB

https://nike-shop-flutter.netlify.app

Credit to: Zoey Fan - https://codepen.io/zoeyfan/pen/ExVaXGK

https://gooey-edge-flutter.netlify.app

mhadaily

Agenda

 

 

  • How Flutter Works
  • Essential widgets for Flutter
  • Live coding
  • What is new in Flutter 2
  • How to start
  • What is Flutter
  • Who is using Flutter?

ME.dart

import 'package:flutter/material.dart';

MaterialApp(
   ThemeData(
        name: "Majid Hajian",
        location: "Oslo, Norway",
        description: '''
        	Flutter Google Developer Expert, 
	        Community Leader, Author and international Speaker
         ''',
        main: "Flutter/Dart, PWA, Performance",
        homepage: "https://www.majidhajian.com",
        socials: {
          twitter: "https://www.twitter.com/mhadaily",
          github: "https://www.github.com/mhadaily"
        },
        author: {
          Pluralsight: "www.pluralsight.com/authors/majid-hajian",
          Apress: "Progressive Web App with Angular, Book",
          PacktPub: "PWA development, 7 hours video course",
          Udemy: "PWA development, 7 hours video course",
        }
        devDependencies: {
          tea: "Ginger", 
          mac: "10.14+",
        },
        community: {
          MobileEraConference: "Orginizer",
          FlutterVikings: "Orginizer", 
          FlutterDartOslo: "Orginizer",
          GDGOslo: "Co-Orginizer",
          DevFestNorway: "Orginizer",
          ...more
        }));

mhadaily

Find me on the internet by

mhadaily

Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase.

 

It’s free and open source.

 

mhadaily

Expressive & Flexible UI

Fast Development

Native Performance

mhadaily

Expressive & Flexible UI

Fast Development

Native Performance

mhadaily

Productive

mhadaily

mhadaily

mhadaily

mhadaily

mhadaily

mhadaily

mhadaily

Everything is a widget

mhadaily

mhadaily

mhadaily

mhadaily

A lot of built in Widgets

mhadaily

Set up your Flutter environment

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

  1. Download and install the Flutter SDK.
  2. Update your PATH with the Flutter SDK.
  3. Install Android Studio with the Flutter and Dart plugins, or your favorite editor.
  4. Install an Android emulator, an iOS simulator (requires a Mac with Xcode), or use a physical device.
> flutter channel
Flutter channels:
  master
  dev
  beta
* stable

flutter create --org com.majidhajian startwithflutter // create project

flutter upgrade // check latest sdk 

flutter doctor // check if evreything is fine


mhadaily

Running "flutter pub get" in startwithflutter...                    1.8s
All done!
.
├── README.md
├── android
│   ├── app
│   ├── build.gradle
│   ├── gradle
│   ├── gradle.properties
│   ├── gradlew
│   ├── gradlew.bat
│   ├── local.properties
│   ├── settings.gradle
│   └── startwithflutter_android.iml
├── ios
│   ├── Flutter
│   ├── Runner
│   ├── Runner.xcodeproj
│   └── Runner.xcworkspace
├── lib
│   └── main.dart
├── pubspec.lock
├── pubspec.yaml
├── startwithflutter.iml
└── test
    └── widget_test.dart

10 directories, 13 files

mhadaily

// pubspec.yaml

name: startwithflutter
description: A new Flutter project.

version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.3

dev_dependencies:
  flutter_test:
    sdk: flutter
    
    
    // RUN flutter pub get

mhadaily

mhadaily

Works with popular tools & platforms

 

LIVE CODING

mhadaily

Summary

mhadaily

FLUTTER / DART   =   EASY & AWESOME

 

 

START TODAY!

flutter.dev/community

fluttervikings.com

mhadaily

Majid Hajian

mhadaily

majid[at]softiware[dot]com

Flutter, Up and Running!

By Majid Hajian

Flutter, Up and Running!

Description: Flutter is a cross-platform, mobile development framework created by Google. With user-centric design in mind, Flutter allows developers to create beautiful native apps on iOS and Android from a single codebase. In this session, I will walk you through the basics of Flutter and Dart such as core concepts, widgets, layout, and more. Last but not least, You will learn the best resources that you will need when developing with Flutter. At the end of the session, you will be able to create your next Flutter project with ease and comfort. This session contains live coding.

  • 2,971