Movatterモバイル変換


[0]ホーム

URL:


menu
  1. smart_select package
  2. documentation
  3. smart_select.dart
  4. S2ModalConfig class
S2ModalConfig class

S2ModalConfig class

Modal configuration

Mixed-in types
Annotations

Constructors

S2ModalConfig({S2ModalTypetype =S2ModalType.fullPage,Stringtitle,booluseHeader =true,booluseConfirm =false,IconconfirmIcon,WidgetconfirmLabel,ColorconfirmColor,EdgeInsetsGeometryconfirmMargin,BrightnessconfirmBrightness =Brightness.light,booluseFilter =false,boolfilterAuto =false,DurationfilterDelay =const Duration(milliseconds: 300),StringfilterHint,doublemaxHeightFactor =0.6,boolenableDrag =true,boolbarrierDismissible =true,ColorbarrierColor,S2ModalStylestyle =const S2ModalStyle(),S2ModalHeaderStyleheaderStyle =const S2ModalHeaderStyle()})
Create modal configuration
const

Properties

barrierColorColor
ThebarrierColor argument is used to specify the color of the modalbarrier that darkens everything the dialog. Ifnull the default colorColors.black54 is used.
final
barrierDismissiblebool
ThebarrierDismissible argument is used to indicate whether tapping on thebarrier will dismiss the dialog. It istrue by default and can not benull.
final
confirmBrightnessBrightness
custom confirmation brightness
final
confirmColorColor
custom confirmation color
final
confirmIconIcon
custom confirmation icon
final
confirmIsDarkbool
Returns true if the confirm button brightness is dark
no setter
confirmIsLightbool
Returns true if the confirm button brightness is light
no setter
confirmLabelWidget
custom confirmation label
final
confirmMarginEdgeInsetsGeometry
custom confirmation padding
final
enableDragbool
Iftype isS2ModalType.bottomSheet, specifies whether the bottom sheet can be dragged up and down and dismissed by swiping downwards.
final
filterAutobool
Whether the filter is autocomplete or need confirmation
final
filterDelayDuration
The filter autocomplete delay
final
filterHintString
Custom searchbar hint
final
hashCodeint
The hash code for this object.
no setterinherited
headerStyleS2ModalHeaderStyle
Configure modal header style
final
isBottomSheetbool
Returns true if the modal type is bottom sheet
no setter
isFullPagebool
Returns true if the modal type is full page
no setter
isPopupDialogbool
Returns true if the modal type is popup dialog
no setter
maxHeightFactordouble
Iftype isS2ModalType.bottomSheet, specifies the max height factor, the value must be between0 and 1
final
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
styleS2ModalStyle
Configure modal style
final
titleString
Use different title with the trigger widget title
final
typeS2ModalType
Modal type to display choices
final
useConfirmbool
Whether the option list need to confirmto return the changed value
final
useFilterbool
Whether the option list is filterable or not
final
useHeaderbool
Whether the options list modal use header or not
final

Methods

copyWith({S2ModalTypetype,Stringtitle,booluseHeader,booluseConfirm,IconconfirmIcon,WidgetconfirmLabel,ColorconfirmColor,EdgeInsetsGeometryconfirmMargin,BrightnessconfirmBrightness,booluseFilter,boolfilterAuto,DurationfilterDelay,StringfilterHint,doublemaxHeightFactor,boolenableDrag,boolbarrierDismissible,ColorbarrierColor,S2ModalStylestyle,S2ModalHeaderStyleheaderStyle})S2ModalConfig
Creates a copy of thisS2ModalConfig but withthe given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilderproperties)→ void
Add additional properties associated with the node.
inherited
merge(S2ModalConfigother)S2ModalConfig
Returns a newS2ModalConfig that isa combination of this object and the givenother style.
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String?name,DiagnosticsTreeStyle?style})DiagnosticsNode
Returns a debug representation of the object that is used by debuggingtools and byDiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevelminLevel =DiagnosticLevel.info})String
A string representation of this object.
inherited
toStringShort()String
A brief description of this object, usually just theruntimeType and thehashCode.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. smart_select package
  2. documentation
  3. smart_select
  4. S2ModalConfig class
smart_select library

[8]ページ先頭

©2009-2025 Movatter.jp