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

What's new in Flutter 1.9

What's new in Flutter 1.9

GDG Devfest Mobile day, Bangkok 2019

Kajornsak Peerapathananont

October 05, 2019
Tweet

More Decks by Kajornsak Peerapathananont

Other Decks in Technology

Transcript

  1. $ flutter devices 1 connected devices: Chrome • chrome •

    web-javascript • Google Chrome 70.0.3538.67
  2. C-based OS APIs // C header: int system(const char *command)

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

    in stdlib.h // C header typedef: typedef SystemC = ffi.Int32 Function(ffi.Pointer<Utf8> command); // Dart header typedef: typedef SystemDart = int Function(ffi.Pointer<Utf8> 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<SystemC, SystemDart>('system');
  4. 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();
  5. const Object i = 3; const list = [i as

    int]; const set = {if (list is List<int>) ...list}; const map = {if (i is int) i: "int"};