Adding a Real-time Database to a Flutter application with Firebase

in #utopian-io6 years ago (edited)

What Will I Learn?

  • You will learn how to add a Firebase Store to a Flutter application
  • You will learn how to add Listeners to the Firebase database
  • You will learn how to dynamically change the state of your application based on the state of the database
  • You will learn how to use native and platform methods to implement Firebase in Flutter

Requirements

Difficulty

  • Intermediate

Description

In this Flutter video tutorial, we look at how we can implement and use Firebase inside of a flutter application. Firebase can be accessed through flutter by way of Android, iOS or through a hybrid approach. Currently, the plugins do not allow for a fully native implementation simply because the plugins and framework lack maturity, however, the setup is not as intensive as it would be in a native Android or iOS application.

Firebase is a cloud platform document storage realtime database. We can use it in Flutter to store, access, update and delete data in realtime in a way that is lightweight and fairly intuitive. Firebase can also be used for authentication, file-storage, and other use cases; but our application simply uses it as a basic data storage tool. We have a simple form with two input boxes. When the user writes text into these input boxes, the data gets sent into an Object which then pushes the data into our Firebase data store in a Json like format. We use stream listeners to see when the data has been changed or added to our firebase data storage and then we change the state of our application in response to these events. We also fetch the data from these streams and push it into a list which then updates our Firebase animated list widget.

The source code for this project can be found here

Firebase 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 again for moderating my content.

Hey @buckydurddle, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

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.16
TRX 0.13
JST 0.027
BTC 59200.90
ETH 2601.74
USDT 1.00
SBD 2.41