borderGlobalOverlay static method
A global overlay that renders with a thin border around the entire
Testable widget using the given color
and border radius
.
Implementation
static WidgetBuilder borderGlobalOverlay({
Color? color,
double radius = 4.0,
}) =>
(BuildContext context) => Positioned.fill(
child: IgnorePointer(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(radius),
border: Border.all(
color: TestableRenderController.of(context).overlayColor ??
color ??
Theme.of(context).errorColor,
),
),
),
),
);