I have realized that it is possible to create widgets using plain functions instead of subclassing StatelessWidget. An example would be this:
Widget functio
There was a Big difference between what functions does and what class does.
Lets I will explain it from very scratch.