Stateless Widget

A Stateless widget is a widget that can't change its state.

To make a stateless widget, you have to do this:

  class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return //add here the widgets: example 👉 Container()
  }
}

Last updated