Flutter StatefulWidget Alternative

Really, I hate the way StatefulWidget class is used in Flutter app so I decided to build my own version that eliminate the double class declaration.

Let’s start by my class version named Stateful_Widget:

To make things clear, I will show you the effect on the Flutter default app, the famous counter app that you get when create a new Flutter project:

“Easy like Sunday morning yeah”. Don’t hesitate to flutter a comment, we all here to learn.