this app shows a counter and two floating button at bottom right, this two button increment, decrements the counter and a text in a center of screen that shows the counter information so let’s start it this tutorial is all about main information. first create the basic ui.
the counter information is store in _counter variable and make two methods increment and decrements that _counter– and _counter++ wrap this counter in a setState() method so it update the state and rebuild the ui, use this two methods in a floating button that’s it, it very short tutorial for increment and decrements it is local state or view changes state.