SimpleNavHome class

Receives most of the user's parameters and provides the final scaffold for the user.

Inheritance

Constructors

SimpleNavHome({Key? key, Widget? titleWidget, Widget? appDrawer, required List<SimpleNavItemModel> navMenuItemList, bool? isTopMenu, bool? centerTitle, int? initialPageIndex, Color? frontColorMenu, Color? backColorMenu, Color? frontColorAppBar, Color? backColorAppBar, bool? isTopAd, Widget? ad, Color? adBackColor, double? adHeight, double? textScaleFactor})
Takes the required and options parameters that later will be initialized in the initState.
const

Properties

A Widget to show as an Ad in all of the menu's screens. Normally an AdWidget instance. The default is null (doesn't show anything).
final
adBackColor Color?
A Color value for the background of the Ad. The default is Colors.blue.
final
adHeight double?
The Ad's height. The default is 50.0.
final
appDrawer Widget?
The drawer Widget to be used, if any. The default is null.
final
backColorAppBar Color?
A Color value for the back of the AppBar (background). The default is Colors.blue.
final
backColorMenu Color?
A Color value for the back of the menu (background). The default is Colors.blue.
final
centerTitle bool?
Defines if the title should be centered inside AppBar. The default is false.
final
frontColorAppBar Color?
A Color value for the front of the AppBar (text/letters). The default is Colors.white.
final
frontColorMenu Color?
A Color value for the front of the menu (text/letters). The default is Colors.white.
final
hashCode int
The hash code for this object.
no setterinherited
initialPageIndex int?
The initial index of the page you want. The default is 0 (first page on the left).
final
isTopAd bool?
Defines if the Ad should appear on the top or on the bottom of the screen. The default is false (bottom).
final
isTopMenu bool?
Defines if the menu should appear on the top or on the bottom of the screen. The default is true (top).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
The list of Menu Items to display, each is a SimpleNavItemModel type. The current limit is 10, but you probably shouldn't use more than 6 on a mobile fone, it won't look very good, but all depends on the screen size and the size of the menu's title.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textScaleFactor double?
Sets how much "zoom" is applied to the selected menu item. The default is 1.15 (15% larger than normal).
final
titleWidget Widget?
Title to appear on the AppBar, can be any Widget but normally is a Text("String"). The default is SizedBox.shrink().
final

Methods

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