Cleanly overriding parts of a theme locally in Flutter. Data are immutable in Flutter. You cannot mutate them, you are forced to clone them with different properties.
final ThemeData theme = Theme.of(context);
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.