Managing the App Life Cycle and the Screen Orientation in Dart's Flutter Framework

in #utopian-io6 years ago (edited)

What Will I Learn?

  • You will learn how to manage life cycle events in Flutter
  • You will learn how to use orientation changes in Flutter
  • You will learn about the orientation builder widget
  • You will learn about how you can limit orientations in Flutter
  • You will learn how to save data on life cycle changed

Requirements

Difficulty

  • Intermediate

Description

In this Flutter tutorial video, we take a look at how we can use Application Life Cycle Events and Screen Orientation changes to our advantage in Flutter. The flutter framework offers a large amount of tools that allows users to manipulate and gain access to the various state changes caused by these events. We can limit the orientations so that the application will not end up in a layout that looks bad for our widgets. We can also add specific layouts for each orientation to make our application feel more native and fluid.

We also have the ability to dynamically change the state of our application based on the Life-cycle Application State. This means that we can store data when our application is pushed into the background and we can fetch that data when the application comes back into the foreground. Using these different properties, we can efficiently create applications that change based on how the users choose to use them. This includes adding listeners to make the application do various things on different state changes as well and forcing the User interface to update.

The source code for this project can be found here

The Android Life Cycle Chart is here

The iOS Life Cycle Chart is 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:  

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, thank you for moderating my contribution.

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

Achievements

  • People loved what you did here. GREAT JOB!
  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

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.33
TRX 0.11
JST 0.034
BTC 66598.01
ETH 3236.65
USDT 1.00
SBD 4.66