Widgets are the central class hierarchy in the Flutter framework. A widget is an immutable description of part of a user interface . Widgets can be inflated into elements, which manage the underlying render tree. Widgets themselves have no mutable state (all their fields must be final).
Read moreHow do I run a widget test in Flutter?
In Android Studio, go to Run -> Edit Configurations. On Left hand section of the configuration screen, click on + icon and select Flutter Test configuration .
Read more