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

in #utopian-io6 years ago (edited)

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

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you as always for moderating my contributions.

Thanks guys.

Hey @tensor I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64269.87
ETH 3393.79
USDT 1.00
SBD 2.48