‪@FlutterFlow‬

Опубликовано: 11 Октябрь 2024
на канале: Dimitar Klaturov
4,598
59

My links
https://linktr.ee/klaturov UPDATE
There is a new way to this using this code as January 2023
  / discord  

Be a paid member. Support my work. Join the Klaturov army!
https://www.youtube.com/@flutterflowe...

Support my work
https://github.com/sponsors/bulgariam...

Website
https://bulgariamitko.github.io/flutt...

You can book me as FF mentor or support my work
https://calendly.com/bulgaria_mitko

GitHub repo
https://github.com/bulgariamitko/flut...

Discord channel
  / discord  

YouTube channel
   / @flutterflowexpert  

In this tutorial, I will show you how to output or "return" information from a custom widget in Flutter using local state.

Local state refers to data that is specific to a particular widget and is not shared with other widgets or parts of the app. It can be useful for storing and manipulating data that is used exclusively within the widget and is not needed outside of it.

In this tutorial, we will see how to use local state in a custom widget to output or "return" information to the widget's parent or other parts of the app. We will start by creating a custom widget that has a stateful component and a state object.

Next, we will see how to use the setState method to update the widget's state and trigger a rebuild, and how to use the widget.state property to access the widget's state from outside the widget.

Finally, we will see how to use the widget's state to output or "return" information to the widget's parent or other parts of the app, using a callback function or some other method of communication.

By the end of this tutorial, you will have learned how to output or "return" information from a custom widget in Flutter using local state and will have the knowledge and tools to do so in your own projects. So, stay tuned and thanks for watching!

In this video
00:00 Introduction
00:23 How it us done in Custom Function
02:40 How it is done using Custom Widget
10:52 How it works
12:54 Conclusion