Flutter stateless widget const inside constructor
When creating a stateless widget, the constructor is const class MyWidget extends StatelessWidget { const MyWidget({super.key}); @override Widget build(BuildContext context) { return SingleChildScrollView( child: ListView( ), ); } } If I add a ScrollController(), then it is not a const…