Currently, I set background color of each screen using this:
@override
Widget build(BuildContext context) => Scaffold(
backgroundColor: Colors.white,
body: ...
);
Every time I create new screen, I always forgot to add this background color setter. This is a minor inconvenience, but I really appreciate if there's a method to set this background color once for all screens, unless overridden by backgroundColor
property of specific Scaffold
. I have tried to set the color on MaterialApp
's color
property, but it doesn't look like it has any effect.