Making use of Shared Preferences, Flex Widgets and Dismissibles with Dart's Flutter framework

What Will I Learn?

  • You will learn how to make use of the Shared Preferences Plugin for Flutter
  • You will learn how to use Flex widgets
  • You will learn how to make a Dismissibles list
  • You will learn how to use EditTextControllers

Requirements

Difficulty

  • Intermediate

Description

In this flutter video tutorial, we build a list application that makes use of one of a few local storage methods; shared preferences. Shared preferences makes use of the native android shared preferences API and the iOS NSUserDefaults API to create a persistent key value store. The data exists in a singleton object in our application and it runs asynchronously from the disk. We also look at how we can use the flex widget reactively layout our widgets and we build out a dismissible list.

The actual application itself has a text box which includes a two buttons below it. The first button allows the user to add the text from the text box into the list below the buttons. The second button allows the user to clear all of the data out of the list. The input box makes use of the edit text controller object which makes it very easy for us to capture the input data from our text box widget. Our list uses a set of dismissible tiles which allow the user to swipe left or right to remove a single item from the list.

The source code for this project can be found here

Video Tutorial

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
5 Comments