GenderPickerWithImage class

Inheritance

Constructors

GenderPickerWithImage({Key? key, TextStyle selectedGenderTextStyle = const TextStyle(fontSize: 19, color: Colors.redAccent, fontWeight: FontWeight.w600), TextStyle unSelectedGenderTextStyle = const TextStyle(fontSize: 19, color: Colors.black, fontWeight: FontWeight.w600), bool verticalAlignedText = false, Duration animationDuration = const Duration(milliseconds: 500), double opacityOfGradient = 0.6, EdgeInsetsGeometry padding = const EdgeInsets.all(10), bool isCircular = true, double size = 40.0, bool equallyAligned = true, Gender? selectedGender = Gender.Male, required ValueChanged<Gender?>? onChanged, LinearGradient linearGradient = const LinearGradient(colors: [Color(0xFF3271a8), Color(0xFF8b32a8)], tileMode: TileMode.clamp, begin: Alignment.bottomLeft, end: Alignment.topRight, stops: [0.0, 1.0]), bool showOtherGender = false, ImageProvider<Object> maleImage = const AssetImage("assets/images/male.png", package: 'gender_picker'), ImageProvider<Object> femaleImage = const AssetImage("assets/images/female.png", package: 'gender_picker'), ImageProvider<Object> otherGenderImage = const AssetImage("assets/images/other.png", package: 'gender_picker'), String maleText = "Male", String femaleText = "Female", String otherGenderText = "Other"})

Properties

animationDuration → Duration
final
equallyAligned → bool
final
femaleImage → ImageProvider<Object>
final
femaleText → String
final
hashCode → int
The hash code for this object.
no setterinherited
isCircular → bool
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
linearGradient → LinearGradient
final
maleImage → ImageProvider<Object>
final
maleText → String
final
onChanged → ValueChanged<Gender?>?
final
opacityOfGradient → double
final
otherGenderImage → ImageProvider<Object>
final
otherGenderText → String
final
padding → EdgeInsetsGeometry
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedGender ↔ Gender?
getter/setter pair
selectedGenderTextStyle → TextStyle
final
showOtherGender → bool
final
size → double
final
unSelectedGenderTextStyle → TextStyle
final
verticalAlignedText → bool
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _GenderPickerWithImageState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → 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 debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited