Slide 1

Slide 1 text

What’s new in Flutter 1.9

Slide 2

Slide 2 text

GDD China September, 2019 @Shanghai, China

Slide 3

Slide 3 text

Flutter 1.9 (Stable)

Slide 4

Slide 4 text

1.9.1+hotfix.4

Slide 5

Slide 5 text

Flutter for Web

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

$ flutter channel master $ flutter upgrade $ flutter config --enable-web

Slide 10

Slide 10 text

$ flutter devices 1 connected devices: Chrome • chrome • web-javascript • Google Chrome 70.0.3538.67

Slide 11

Slide 11 text

$ flutter run -d chrome

Slide 12

Slide 12 text

*tech preview*

Slide 13

Slide 13 text

Language supports

Slide 14

Slide 14 text

New 24 languages https://developers.googleblog.com/2019/09/flutter-news-from-gdd-china-flutter1.9.html

Slide 15

Slide 15 text

iOS 13 & Catalina

Slide 16

Slide 16 text

iOS 13

Slide 17

Slide 17 text

CupertinoSwitch (UISwitch)

Slide 18

Slide 18 text

Before After

Slide 19

Slide 19 text

iOS 13 Scroll bar

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Bitcode enabled app (experimental)

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

Material

Slide 26

Slide 26 text

ToggleButtons

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

ColorFiltered

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

SelectableText

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Toolchain improvements

Slide 35

Slide 35 text

Swift & Kotlin

Slide 36

Slide 36 text

Dart 2.5

Slide 37

Slide 37 text

ML Completion (preview)

Slide 38

Slide 38 text

Before After https://medium.com/dartlang/announcing-dart-2-5-super-charged-development-328822024970

Slide 39

Slide 39 text

https://medium.com/dartlang/announcing-dart-2-5-super-charged-development-328822024970

Slide 40

Slide 40 text

{ "dart.analyzerAdditionalArgs": ["--enable-completion-model"], "editor.suggestSelection": "first" } VS Code Registry set dart.server.additional.arguments to --enable-completion-model IntelliJ, AS

Slide 41

Slide 41 text

dart:ffi (preview)

Slide 42

Slide 42 text

C-based OS APIs // C header: int system(const char *command) in stdlib.h

Slide 43

Slide 43 text

C-based OS APIs // C header: int system(const char *command) in stdlib.h // C header typedef: typedef SystemC = ffi.Int32 Function(ffi.Pointer command); // Dart header typedef: typedef SystemDart = int Function(ffi.Pointer command);

Slide 44

Slide 44 text

C-based OS APIs // C header: int system(const char *command) in stdlib.h // C header typedef: typedef SystemC = ffi.Int32 Function(ffi.Pointer command); // Dart header typedef: typedef SystemDart = int Function(ffi.Pointer command); // Load `stdlib`. On macOS this is in libSystem.dylib. final dylib = ffi.DynamicLibrary.open('/usr/lib/libSystem.dylib'); // Look up the system function. final systemP = dylib.lookupFunction('system');

Slide 45

Slide 45 text

C-based OS APIs // Allocate a pointer to a Utf8 array containing our command. final cmdP = Utf8.toUtf8('open https://www.google.com'); // Invoke the command. systemP(cmdP); // Free the pointer. cmdP.free();

Slide 46

Slide 46 text

C-based frameworks ????????? https://medium.com/rta902/confused-nick-young-b67a18e21657

Slide 47

Slide 47 text

ML Completion

Slide 48

Slide 48 text

const improvements

Slide 49

Slide 49 text

const Object i = 3; const list = [i as int]; const set = {if (list is List) ...list}; const map = {if (i is int) i: "int"};

Slide 50

Slide 50 text

Showcase

Slide 51

Slide 51 text

https://flutter.dev/showcase

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

https://flutter-widget-livebook.blankapp.org

Slide 54

Slide 54 text

One more thing

Slide 55

Slide 55 text

Flutter Study Jam TH 2019 Open for registration: http://bit.ly/2oAaqw5 ● Free ● Half-day workshop ● Limited seats

Slide 56

Slide 56 text

FB Group : Thailand Flutter Developer