Widgets instead of functions
Do
@override Widget build(BuildContext context) { return Scaffold( body: Column( children: const [ Widget(), Widget(), Widget() ] ) ); }
Don't
@override Widget build(BuildContext context) { return Scaffold( body: Column( children: [ WidgetFunction(), WidgetFunction(), WidgetFunction() ] ) ); }
Conclusion: Extracting widgets to a method is considered as a Flutter anti-pattern, because when Flutter rebuilds widget tree, it calls the function all the time, making more processor time for the operations while widgets they will be rendered once and will not update themselves.