PopupStyle class
Constructors
- PopupStyle({Color? barrierColor, double? elevation, bool? isDismissible, BoxDecoration? decoration, double? borderRadius, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, bool showClose = true, WidgetBuilder? dragHandlerBuilder, WidgetBuilder? closeButtonBuilder})
-
const
Properties
- backgroundColor → Color?
-
组件背景
final
- barrierColor → Color?
-
final
- borderRadius → double?
-
Customize popup box's border radius when decoration is not specified
final
- closeButtonBuilder → WidgetBuilder?
-
Close button builder
final
- decoration → BoxDecoration?
-
Customize popup box decoration
final
- dragHandlerBuilder → WidgetBuilder?
-
Build a Widget at top of the popup that
seems to responeding drag to close the popup
final
- elevation → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDismissible → bool?
-
final
- margin → EdgeInsetsGeometry?
-
final
- padding → EdgeInsetsGeometry?
-
内容区的内边距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showClose → bool
-
是否显示关闭按钮
final
Methods
-
copyWith(
{Color? barrierColor, double? elevation, bool? isDismissible, BoxDecoration? decoration, double? borderRadius, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, bool? showClose, WidgetBuilder? dragHandlerBuilder, WidgetBuilder? closeButtonBuilder}) → PopupStyle - Creates a copy of this style but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lerp(
PopupStyle? a, PopupStyle? b, double t) → PopupStyle - lerp two SnackStyle