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

Dart: From Padawan to Jedi in one week

Dart: From Padawan to Jedi in one week

Douglas compartilha como foi sua primeira semana de experiência trabalhando com Dart e Flutter, construindo uma aplicação simples.

Douglas Gimli
github.com/douglasgimli

GDG Floripa

May 02, 2018
Tweet

More Decks by GDG Floripa

Other Decks in Technology

Transcript

  1. • Dart as the main language • One language, multiple

    platforms • Open source • Maintained by Google • Simple and scalable • No bridge context switches • Optimised Garbage collector • Unified layout • Dart Code only Dart & Flutter
  2. • Widgets, widgets everywhere… ◦ AppBar ◦ Container ◦ Padding

    ◦ Sizing ◦ Column and Row ◦ Image and Text ◦ Listview • Stateless and Stateful ◦ Stateless receive and consume arguments from parent Widgets ◦ Stateful know how to create and manipulate states UI
  3. • Service layer ◦ Async ◦ Future Aka Promises •

    Folder structure ◦ Lib folder ◦ Same as my web flow • Persist data ◦ User preferences ◦ SQLite • Native tests Data management
  4. • Errors that crashed the debugger ◦ A lot of

    cleans… • Version 0.2.. • Careful with the Hadouken code ◦ Widgets everywhere… • Complex state management ◦ No observables ◦ Flux in action Problems in paradise
  5. • It was easy to have an prototype in hands

    ◦ But.. to immature yet • Environment missing features ◦ Poor iOS style widgets • Community Small ◦ Compared to React Native • Has Dart as the primary language ◦ Which is support by Google • Not there yet, but for sure it’s on the right path! Final thoughts