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

Welcome to Flutter

Welcome to Flutter

Avatar for Jonathan Campos

Jonathan Campos

September 28, 2020
Tweet

Other Decks in Programming

Transcript

  1. What is Flutter 2020? Flutter is an open-source mobile SDK

    that developers can use to build native-looking Android and iOS applications from the same code base using a Google language called Dart.
  2. Widgets Flutter screens are basically made of widgets, each element

    that you can see like: texts, images, cards, buttons... They are all widgets! P.S: A widget is an immutable description of part of a user interface.
  3. State According to Flutter documentation state of an app is

    everything that exists in memory when the app is running and a even better definition could be: state is whatever data you need in order to rebuild your UI at any moment in time.
  4. Stateless Widget It's a widget that can't change its state

    while the app is running, this mean that the widget cannot be redrawn while the app is in action.
  5. Statefull Widget It's a widget that are mutable and can

    be drawn multiple times within its lifetime.
  6. List Because of the declarative way, Flutter makes hard things

    really easy to achieve. Like a list for example, in Android you need some files in order to make a list work. • A layout that describe how the items should be displayed • A layout with recyclerview/listview • An adapter/viewholder • A class that will tie everything together Even for a simple list you need everything above! No way!
  7. References • State management • Declarative and Imperative Programming using

    SwiftUI and UIKit | by Robert Mejia | Flawless iOS • Flutter: Stateful vs Stateless Widget | by Souvik Biswas | Flutter Community • Content on Declarative UI