Making use of General Utility Libraries for Dart's Flutter Framework

in #utopian-io6 years ago (edited)

What Will I Learn?

  • You will learn about the battery plugin
  • You will learn about the connectivity plugin
  • You will learn about the device info plugin
  • You will learn how to handle Platform Messages in Flutter
  • You will learn about Flutter-Fire and the various Google backed Plugins for Flutter

Requirements

Difficulty

  • Intermediate

Description

In this Flutter Video Tutorial, we take a look at three general utility plugins; connectivity, battery and device info. These plugins are a part of the Flutter Fire GitHub Repository; a repository of plugins that are maintained by the flutter team. All of the plugins make use of Platform Messages which are asynchronous messages that are sent to and from the host platform. Through these messages, Flutter gains access to APIs that are are part of the Host platform's ecosystem. This includes hardware APIs, operating system applications and drivers.

The Connectivity Plugin gives us an API that lets us check the status of the internet connectivity of the device that our application is installed on. This can be very useful because it allows us to throttle some of the features in our application in response to changes in the internet speed and availability. With this library, we can make sure that our application does not eat up too much data.

The Battery Plugin is similar to the connectivity plugin, except it gives us an API which lets us communicate with the battery state of the device. We can use this feature to build out applications that directly relate to battery power. Again, we are able to use this to dynamically change how are applications react to the changes in the device's battery life.

The final plugin we looked at in this tutorial is the Device Info plugin. The device info plugin gives us access to various different pieces of information that are unique to the device that the application is running on. This includes the brand, model number, id and fingerprint. We can use these different properties to change some of the features of our application and make it so that the application can work better on older devices. We can also make it so that the application provides alternative features for devices that are lacking specific pieces of hardware.

The source code for this project can be found here

The Flutter Fire Repository can be found here

Video Tutorial

Projects and Series

Stand Alone Projects:
Building a Calculator
Movie Searcher Application

Minesweeper Game

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @tensor! Thank you for the great work you've done!

We're already looking forward to your next contribution!

Fully Decentralized Rewards

We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

Thank you for your contribution. It has been approved.

Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Again, thanks for moderating my contributions.

Great contribution friend @tensor, I am delighted with your article, most of your work is very good. I wish you continue to be successful and blessings friend. Greetings.

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64118.79
ETH 3390.14
USDT 1.00
SBD 2.51