showBuilder<T> method
Future<T?>
showBuilder<T>(
- Widget builder(), {
- EdgeInsets? insetPadding,
- AlignmentGeometry? alignment,
- dynamic clipBehavior = Clip.hardEdge,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- Duration? insetAnimationDuration,
- Curve? insetAnimationCurve,
- ShapeBorder? shape,
- BoxConstraints? constraints,
Implementation
Future<T?> showBuilder<T>(
Widget Function(UpdatableContext uc) builder, {
EdgeInsets? insetPadding,
AlignmentGeometry? alignment,
clipBehavior = Clip.hardEdge,
Color? backgroundColor,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
Duration? insetAnimationDuration,
Curve? insetAnimationCurve,
ShapeBorder? shape,
BoxConstraints? constraints,
}) {
HareBuilder hb = HareBuilder();
hb.builder = (c) => builder(UpdatableContext(context: c, updatable: hb));
return showDialog<T>(
context: globalContext,
builder: (c) => Dialog(
insetPadding: insetPadding ?? options.insetPadding,
alignment: alignment ?? options.alignment,
clipBehavior: clipBehavior ?? options.clipBehavior,
backgroundColor: backgroundColor ?? options.backgroundColor,
elevation: elevation ?? options.elevation,
shadowColor: shadowColor ?? options.shadowColor,
surfaceTintColor: surfaceTintColor ?? options.surfaceTintColor,
insetAnimationDuration: insetAnimationDuration ?? options.insetAnimationDuration,
insetAnimationCurve: insetAnimationCurve ?? options.insetAnimationCurve,
shape: shape ?? options.shape,
constraints: constraints ?? options.constraints,
child: hb,
),
);
}