painter method

  1. @override
BackgroundPainter painter({
  1. Rect? textSafeArea,
  2. Rect? toolbarExclusion,
  3. bool reduceMotion = false,
})
override

A painter filling the whole calculator surface. Inside textSafeArea (the display text) it keeps the display legible: a solid surface behind the text, no pattern. Scene art in the toolbar row keeps clear of toolbarExclusion (the mode button). With reduceMotion any drift is frozen.

Implementation

@override
BackgroundPainter painter({
  Rect? textSafeArea,
  Rect? toolbarExclusion,
  bool reduceMotion = false,
}) => BackgroundPainter(
  spec: spec,
  surface: surface,
  textSafeArea: textSafeArea,
  toolbarExclusion: toolbarExclusion,
  patternFade: patternFade,
  reduceMotion: reduceMotion,
);