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

Flutter at I/O 19

Flutter at I/O 19

A quick recap of all the updates in Flutter 1.5 and Dart 2.3 that were presented in Google I/O 2019. Presented the deck in GDG BBSR IO Extended.

Avatar for Pooja Bhaumik

Pooja Bhaumik

June 09, 2019
Tweet

More Decks by Pooja Bhaumik

Other Decks in Programming

Transcript

  1. Column( children: <Widget>[ FloatingActionButton( onPressed: () => {}, tooltip: 'Increment',

    child: Icon(Icons.add), ), FloatingActionButton( onPressed: () => {}, tooltip: 'Increment', child: Icon(Icons.remove), ) ], ),
  2. Column( children: <Widget>[ FloatingActionButton( onPressed: () => {}, tooltip: 'Increment',

    child: Icon(Icons.add), ), FloatingActionButton( onPressed: () => {}, tooltip: 'Increment', child: Icon(Icons.remove), ) ], ),
  3. class Counter with ChangeNotifier { int counter; Counter(this.counter); get value

    => counter; set value (int counter) => counter = counter; void increment() { counter++; notifyListeners(); } void decrement() { counter--; notifyListeners(); } }
  4. class Counter with ChangeNotifier { int counter; Counter(this.counter); get value

    => counter; set value (int counter) => counter = counter; void increment() { counter++; notifyListeners(); } void decrement() { counter--; notifyListeners(); } }
  5. class Counter with ChangeNotifier { int counter; Counter(this.counter); get value

    => counter; set value (int counter) => counter = counter; void increment() { counter++; notifyListeners(); } void decrement() { counter--; notifyListeners(); } }
  6. class Counter with ChangeNotifier { int counter; Counter(this.counter); get value

    => counter; set value (int counter) => counter = counter; void increment() { counter++; notifyListeners(); } void decrement() { counter--; notifyListeners(); } }
  7. class Counter with ChangeNotifier { int counter; Counter(this.counter); get value

    => counter; set value (int counter) => counter = counter; void increment() { counter++; notifyListeners(); } void decrement() { counter--; notifyListeners(); } }
  8. class HomePage extends StatelessWidget { @override Widget build(BuildContext context) {

    final counter = Provider.of<Counter>(context); return Scaffold( appBar: AppBar(), body: ...
  9. class HomePage extends StatelessWidget { @override Widget build(BuildContext context) {

    final counter = Provider.of<Counter>(context); return Scaffold( appBar: AppBar(), body: ...
  10. Column( children: <Widget>[ FloatingActionButton( onPressed: counter.increment, tooltip: 'Increment', child: Icon(Icons.add),

    ), FloatingActionButton( onPressed: counter.decrement, tooltip: 'Increment', child: Icon(Icons.remove), ) ], ),