Niftile class

Niftile

Niftile is derived from the words "Nifty" and "Tile" as it acts Nifty for all your usecases.

It utilizes all the data in TabItem object to create a multipurpose tile.

Inheritance

Constructors

Niftile({Key? key, required TabItem item, double? height, double? width, Key? niftileKey, void onTap()?, bool isFloating = true, Color? selectedColor, Color? unSelectedColor, BorderRadiusGeometry? borderRadius, bool showLeading = true, bool showTrailing = true, bool iconMode = false, bool buttonMode = false, double? buttonModeWidth = 150, TextStyle? titleStyle = const TextStyle(), TextStyle? subTitleStyle = const TextStyle(), IconData? childrenIcon = CupertinoIcons.arrow_up_arrow_down, Airoll? altAiroll, AlignmentGeometry? alignment})
const

Properties

alignment AlignmentGeometry?
Title and Subtitle alignment.
final
altAiroll Airoll?
Alternative Airoll for the tile for the cases where TabItem has children.
final
borderRadius BorderRadiusGeometry?
Radius for the corners of the tile.
final
buttonMode bool
buttonMode when true, will force the Niftile to be like a small button with maximum width 200 and only trailing, notification, and children icons are miniature, but still functions like a default Niftile.
final
buttonModeWidth double?
Width for tile in buttonMode, maximum possible is 200.
final
childrenIcon IconData?
childrenIcon will show up on the tile if the Niftile have children which is provided from the TabItem children, this icons will be seen in both tile as well as button mode.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the tile.
final
iconMode bool
iconMode when true, will force the Niftile to be like a small icon button with maximum height and width 100 and shows only leading. Notification, trailing and children icons are shown on hover in a Airoll, but still functions like a default Niftile.
final
isFloating bool
Boolean that enables or disables the floating interface of the tile.
final
item TabItem
TabItem object to hold data for the tile.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
niftileKey Key?
Key for the Niftile.
final
onTap → void Function()?
Apart from the onTap parameter provided by the TabItem, this onTap will be called when tIOnTap of the TabItem is false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color?
Tile highlights the title and icons when selected and selectedColor will show when tile is selected.
final
showLeading bool
When true tile will show leading widget if provided in the TabItem selectedLeading or unSelectedLeading parameter.
final
showTrailing bool
When true tile will show trailing widget if provided in the TabItem trailing parameter.
final
subTitleStyle TextStyle?
TextStyle for subtitle.
final
titleStyle TextStyle?
TextStyle for title.
final
unSelectedColor Color?
When the tile is not selected unSelectedColor will show.
final
width double?
Width of the tile.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Niftile>
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}) 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