Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with Flutter

Getting started with Flutter

- Getting started with Flutter
- Dart
- Sample project

Khoa Pham

March 29, 2019
Tweet

More Decks by Khoa Pham

Other Decks in Programming

Transcript

  1. About → Khoa https://github.com/onmyway133/ → Write for React Native Training

    https:// medium.com/react-native-training → and Flawless App https://medium.com/flawless- app-stories
  2. Flutter → https://flutter.dev/ → Open source mobile application development SDK

    by Google → https://github.com/flutter/flutter → Release 1.0 on December 4th 2018
  3. Platform → Target iOS, Android, Fuchsia → Latest Flutter 1.2.1

    with Dart 2.1.2 → Flutter engine in C++ using Google Skia graphics library → Foundation in Dart
  4. Platform → Android: Dart virtual machine with just in time

    (JIT) execution → iOS: ahead of time (AOT) compilation → Dart supports hot reload → Modification to source files can be injected into running application
  5. Why Flutter uses Dart → https://hackernoon.com/why-flutter-uses-dart- dd635a054ebf → Either Ahead

    of Time or Just in time → Effective object allocation and garbage collection
  6. Dart // Define a function. printInteger(int aNumber) { print('The number

    is $aNumber.'); // Print to console. } // This is where the app starts executing. main() { var number = 42; // Declare and initialize a variable. printInteger(number); // Call a function. }
  7. Flutter new Center( child: new Column( children: [ new Text('Hello,

    World!')), new Icon(Icons.star, color: Colors.green) ] ) )
  8. Flutter vs React Native → React Native Virtual dom ->

    native controls → Flutter Widget tree
  9. Create an app → Install Flutter https://flutter.dev/docs/get- started/install/macos → Flutter

    Widget of the week https:// www.youtube.com/watch? v=lkF0TQJO0bA&list=PLOU2XLYxmsIL0pH0zWe_ZOH gGhZ7UasUE
  10. Resource → Add Flutter to existing apps https://github.com/ flutter/flutter/wiki/Add-Flutter-to-existing-apps →

    Flutter official samples https://github.com/ flutter/samples → Open source apps https://github.com/Solido/ awesome-flutter#open-source-apps → Cookbook https://flutter.dev/docs/cookbook