GFRadioListTile<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- GFRadioListTile
- Available extensions
Constructors
- GFRadioListTile({Key? key, required T value, required T groupValue, required ValueChanged? onChanged, double size = GFSize.SMALL, GFRadioType type = GFRadioType.basic, Color radioColor = GFColors.SUCCESS, Color activeBgColor = GFColors.WHITE, Color inactiveBgColor = GFColors.WHITE, Color activeBorderColor = GFColors.DARK, Color inactiveBorderColor = GFColors.DARK, GFPosition position = GFPosition.end, Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.DARK), Widget? inactiveIcon, Color customBgColor = GFColors.SUCCESS, bool autofocus = false, FocusNode? focusNode, bool toggleable = false, String? titleText, String? subTitleText, Color? color, Widget? avatar, Widget? title, Widget? subTitle, Widget? description, Widget? icon, EdgeInsets padding = const EdgeInsets.all(8), EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16), bool enabled = true, GestureTapCallback? onTap, GestureLongPressCallback? onLongPress, bool selected = false, Color? focusColor, Color? hoverColor})
-
GFRadioListTile is a list title of with GFRadio in it.
const
Properties
- activeBgColor → Color
-
type of Color used to change the backgroundColor of the active checkbox
final
- activeBorderColor → Color
-
type of Color used to change the border color of the active checkbox
final
- activeIcon → Widget
-
type of Widget used to change the checkbox's active icon
final
- autofocus → bool
-
on true state this widget will be selected as the initial focus
when no other node in its scope is currently focused
final
- avatar → Widget?
-
If position is start Checkbox will come instead of avatar, type of Widget or GFAvatar used to create rounded user profile
final
- checked → bool
-
Whether this radio button is checked. To control this value, set value and groupValue appropriately.
no setter
- color → Color?
-
The GFListTile's background color. Can be given Color or GFColors
final
- customBgColor → Color
-
type of Color used to change the background color of the custom active checkbox only
final
- description → Widget?
-
The description to display inside the GFListTile. see Text
final
- enabled → bool
-
Whether this list tile is interactive.
final
- focusColor → Color?
-
The color for the tile's Material when it has the input focus.
final
- focusNode → FocusNode?
-
an optional focus node to use as the focus node for this widget.
final
- groupValue → T
-
The currently selected value for a group of radio buttons. Radio button is considered selected if its value matches the groupValue.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → Color?
-
The color for the tile's Material when a pointer is hovering over it.
final
- icon → Widget?
-
If position is end Checkbox will come instead of icon, The icon to display inside the GFListTile. see Icon
final
- inactiveBgColor → Color
-
type of Color used to change the backgroundColor of the inactive checkbox
final
- inactiveBorderColor → Color
-
type of Color used to change the border color of the inactive checkbox
final
- inactiveIcon → Widget?
-
type of Widget used to change the checkbox's inactive icon
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsets
-
defines the margin of GFListTile
final
- marginZero → Widget
-
Available on Widget, provided by the WidgetMarginX extension
no setter - onChanged → ValueChanged?
-
Called when the user checks or unchecks the checkbox.
final
- onLongPress → GestureLongPressCallback?
-
Called when the user long-presses on this list tile.
final
- onTap → GestureTapCallback?
-
Called when the user taps this list tile.
final
- padding → EdgeInsets
-
defines the padding of GFListTile
final
- paddingZero → Widget
-
Available on Widget, provided by the WidgetPaddingX extension
no setter - position → GFPosition
-
Position allows user to set position of GFCheckbox based on given GFPosition
final
- radioColor → Color
-
type pf Color used to change the checkcolor when the checkbox is active
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
If this tile is also enabled then icons and text are rendered with the same color.
final
- size → double
-
type of double which is GFSize ie, small, medium and large and can use any double value
final
- sliverBox → Widget
-
Available on Widget, provided by the WidgetSliverBoxX extension
no setter - subTitle → Widget?
-
The subTitle to display inside the GFListTile. see Text
final
- subTitleText → String?
-
type of String used to pass text, alternative to subTitle property and gets higher priority than subTitle
final
- title → Widget?
-
The title to display inside the GFListTile. see Text
final
- titleText → String?
-
type of String used to pass text, alternative to title property and gets higher priority than title
final
- toggleable → bool
-
sets the radio value
final
- type → GFRadioType
-
type of GFRadioType which is of four type is basic, sqaure, circular and custom
final
- value → T
-
The value represented by this radio button.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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
-
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
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