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

Want a faster mobile development ? Flutter is t...

Want a faster mobile development ? Flutter is the way

Flutter is a Framework developed and used by Google using Dart and a C++ engine to create Mobile Applications writing code only once. With Flutter you can write code only once and release it in the appstore and in the playstore. With Flutter you prototype, develop and release faster. This Talk will teach us the importance of Flutter, its most important features and finally how it works. The talk will end with an example of a simple application developed in Flutter.

WillyShakes

April 17, 2018
Tweet

More Decks by WillyShakes

Other Decks in Programming

Transcript

  1. 1. What is Flutter ? 2. The story 3. Tooling

    4. Widgets 5. Testing 6. Use Cases 7. Example
  2. 1. mobile UI framework 2. made by google 3. helps

    to craft high-quality native interfaces on iOS and Android 4. free and open source 5. Fast Development experience
  3. What do you need to setup Flutter? • Operating System

    of 64 bit (Windows, MacOs, Linux) • Disk Space: Windows — 400 MB, MacOs — 700 MB, Linux — 600 MB • Tools: Windows (git), MacOs-Linux (bash, mkdir, rm, git, curl, unzip, which) • Get the Flutter SDK • run “flutter doctor” on command prompt or POWER SHELL.
  4. Dart is a general-purpose programming language originally developed by Google

    and later approved as a standard by Ecma — Wikipedia
  5. 1. Dart language is a cool language: 2. it’s familiar

    and easy to learn for developers 3. it’s Class-based and optionally typed 4. It has a cool Asynchronous Library (Future and Stream) 5. Dart helps to create an easy to understand layout for your UI
  6. Flutter CLI doctor: Show information about the installed tooling. This

    command is vital to know if there is something dependencies missing. logs: Show log output for running Flutter apps. screenshot: Take a screenshot from a connected device. test: Run Flutter unit tests for the current project. trace: Start and stop tracing for a running Flutter app. With this command you can trace and measure wall/CPU time.
  7. A widget can define: • a structural element (like a

    button or menu) • a stylistic element (like a font or color scheme) • an aspect of layout (like padding) • ... flutter.io
  8. Stateful Widget These one have a state and can change.

    When the state values changes, the Widget will be redrawn on the screen.
  9. Unit testing Tests are run on local Dart VM with

    a headless version of the Flutter Engine
  10. widget = new Padding( padding: new EdgeInsets.all( 32.0), child: new

    Column(children: <Widget>[ new Flexible( child: new FirebaseAnimatedList( query: reference, sort: (a, b) => b. key.compareTo(a. key), padding: new EdgeInsets.all( 8.0), reverse: true, itemBuilder: (context, DataSnapshot snapshot, Animation<double> animation,int x) { //new return new Quote( snapshot: snapshot, animation: animation ); }, ), ), new Align( alignment: const Alignment(0.0, -0.2), child: new FloatingActionButton( child: const Icon(Icons. add), onPressed: () { Navigator. of(context).pushNamed( '/add'); }, ), ), ], ), );
  11. new Form( key: _formKey, autovalidate: _autovalidate, onWillPop: _warnUserAboutInvalidData, child: new

    ListView( padding: const EdgeInsets.symmetric(horizontal: 16.0), children: <Widget>[ new TextFormField( decoration: const InputDecoration( icon: const Icon(Icons. person), hintText: 'Author', labelText: 'author *', ), onSaved: (String value) { _author = value; }, validator: _validateName,), new TextFormField( decoration: const InputDecoration( icon: const Icon(Icons. note), hintText: 'Your quote', labelText: 'Quote',), maxLines: 3, keyboardType: TextInputType. emailAddress, onSaved: (String value) { _quote = value; }, validator: _validateName,), new Container( alignment: Alignment. center, padding: const EdgeInsets.symmetric(vertical: 16.0), child: new RaisedButton( child: const Text('ADD'), onPressed: _handleSubmitted,),),],),),
  12. bool _IsLoading; bool Logged; State _IsLoading _IsLoading true false Logged

    true impossible quotes Logged false progress login