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

Flutter: Makes developer’s life easy

Dhrumil Shah
November 10, 2018

Flutter: Makes developer’s life easy

A basic Introduction, what is Flutter and how it works, the architecture of Flutter. What are the pain points of Android Developers and how it is been resolved in Flutter. And a live code demo.

Talk delivered at DevFest Coimbatore 2018

Google Slides with Animation & Gif: https://goo.gl/23vzAv

Dhrumil Shah

November 10, 2018
Tweet

More Decks by Dhrumil Shah

Other Decks in Programming

Transcript

  1. Flutter is Coimbatore • An SDK to build beautiful native

    apps in record time • Works for both Android & iOS • An open source Toolkit by Google
  2. Flutter architecture Coimbatore Skia Dart Text Foundation Animation Painting Rendering

    Widgets Material Gestures Engine (C++) Framework (Dart) Cupertino
  3. Compiled to native MVC/ MVVM View Reactive Views Interpreted (JavaScript)

    iOS SDK Android SDK Titanium, Cordova, PhoneGap, Ionic, ... Technology: WebViews
  4. Compiled to native MVC/ MVVM View Reactive Views Interpreted (JavaScript)

    iOS SDK Android SDK Titanium, Cordova, PhoneGap, Ionic, ... Flutter React Native Technology: Reactive Views
  5. Diagram the Layout - Look for rows and columns -

    Is there a grid? - Any overlapping elements? - Do we need tabs? - Padding, alignment or borders needed?
  6. Widget can be Coimbatore • A structural element (like a

    Button or Menu) • A layout element (like a Margin or Padding) • A design element (like a Font or Color scheme)
  7. Stateless Widget Coimbatore • It doesn’t know anything • Dumb

    Widget • Gets render only once or • When the parent widget changes the configuration
  8. Stateful Widget Coimbatore • Dynamic widget which has its own

    properties • Those property is know as state of the widget • The state of the widget can be changed by user input, any operation or other widget’s state change. • setState() method is used to change the state. • Each time widget gets rebuild when setState() method gets called.
  9. Hot Reload is Coimbatore • Stateful: App state is retained

    after a reload. • Injecting updated source code files into the running Dart VM • Quickly iterate on a screen deeply nested in your app
  10. Hot Reload is Coimbatore • Stateful: App state is retained

    after a reload. • Injecting updated source code files into the running Dart VM • Quickly iterate on a screen deeply nested in your app
  11. Flutter’s benefits Flutter provides its own widgets • Compiles to

    native Code • No reliance on OEM widgets • No bridge needed • Turns layout on its head! • Widgets are simple and fast • Full customisation and extensibility
  12. References Coimbatore • Awesome Flutter - Wm Leler • The

    Magic of Flutter - Tim Messerschmidt • Flutter.io • Github.com/flutter