CommonScaffold class

Inheritance
Mixed-in types
Available extensions

Constructors

CommonScaffold({String appTitle = '', required Widget bodyData, Decoration? bodyDecoration, bool centerTitle = true, bool showFAB = false, dynamic showDrawer = false, dynamic drawer, dynamic endDrawer, Color? backGroundColor = UIData.windowBg, dynamic actionFirstIcon = Icons.search, dynamic scaffoldKey, dynamic actionButtons, dynamic appBar, bool showBottomNav = true, Widget? bottomNav, dynamic centerDocked = false, dynamic floatingIcon, double elevation = 0.0, bool isLoading = false, bool isBackLoading = false, bool hasLeading = true, bool hideAppbar = false, bool safeBody = true, bool noAppBar = false, bool noStatusBar = false, bool statusBarPadding = false, Function? onBack, bool noLeadingBack = false, bool hasNoWrapper = false, bool drawBottom = false, bool isEmpty = false, Color? appColor = UIData.windowBg, Color? titleColor = UIData.pureWhite, double? height, Function? onBodyClick, Color drawBottomColor = UIData.windowBg, bool isDarkLeading = false, bool? isBodyLoading, Widget? loadingView})

Properties

actionButtons → dynamic
final
actionFirstIcon → dynamic
final
appBar → dynamic
final
appBarHeight → double
no setterinherited
appColor → Color?
final
appTitle → String
final
backGroundColor → Color?
final
bodyData → Widget
final
bodyDecoration → Decoration?
final
bottomNav → Widget?
final
centerDocked → dynamic
final
centerTitle → bool
final
contentHeight → double
no setterinherited
deviceHeight → double
no setterinherited
deviceSize → Size
no setterinherited
deviceWidth → double
no setterinherited
drawBottom ↔ bool
getter/setter pair
drawBottomColor → Color
final
drawer → dynamic
final
elevation → double
final
endDrawer → dynamic
final
floatingIcon → dynamic
final
hashCode → int
The hash code for this object.
no setterinherited
hasLeading ↔ bool
getter/setter pair
hasNoWrapper ↔ bool
getter/setter pair
height → double?
final
hideAppbar → bool
final
isBackLoading → bool
final
isBodyLoading → bool?
final
isDarkLeading → bool
final
isEmpty ↔ bool
getter/setter pair
isLoading ↔ bool
getter/setter pair
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingView → Widget?
final
no setterinherited
noAppBar → bool
final
noLeadingBack → bool
final
noStatusBar → bool
final
onBack → Function?
final
onBodyClick → Function?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeBody → bool
final
scaffoldKey → dynamic
final
showBottomNav → bool
final
showDrawer → dynamic
final
showFAB → bool
final
statusBarPadding → bool
final
statusHeight → double
no setterinherited
systemAppBarHeight → double
no setterinherited
titleColor → Color?
final

Methods

bottomNavBar() → Widget?
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
defaultLeading(BuildContext context) → Widget
go(BuildContext context, {WidgetBuilder? wb, bool replace = false}) → void

Available on Widget, provided by the mxWidget extension

leadingWidget(BuildContext context, {bool isDark = false}) → Widget
myBottomBar() → Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
routeName() → String

Available on Widget, provided by the mxWidget 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
xAppBarMake(double h) → Widget

Available on Widget, provided by the mxWidget extension

xGestureTouchContainer(bool enable, {GestureTapCallback? onTap, GestureCancelCallback? onLongTap}) → Widget

Available on Widget, provided by the mxWidget extension

xInputContainer() → InputTouchContainer

Available on Widget, provided by the mxWidget extension

xLoadingContainer(bool b, {required Widget loadingView}) → Widget

Available on Widget, provided by the mxWidget extension

xNoneTouchContainer(bool enable) → Widget

Available on Widget, provided by the mxWidget extension

xOnPopWrapper(bool canPop, {required void onPop(bool didPop, dynamic data)?}) → Widget

Available on Widget, provided by the mxWidget extension

xOnTap(Function onTap, {bool enable = true, bool withContainer = false, int cd = 800}) → Widget

Available on Widget, provided by the mxWidget extension

xSafeContainer(bool enable) → Widget

Available on Widget, provided by the mxWidget extension

xVisible(bool b) → Widget

Available on Widget, provided by the mxWidget extension

Operators

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

Static Methods

bar(String title, {Color barColor = UIData.primaryColor, Color titleColor = UIData.icBackColor, List<Widget>? actions}) → Widget
customBar(Widget leading, Widget title, {Color barColor = UIData.primaryColor, List<Widget>? actions, double elevation = 0.5}) → Widget
leadingNav(BuildContext context, {Color titleColor = UIData.black, num paddingR = 0.0, bool isDark = false, String? icon, Function? onBack}) → Widget
leadingNavDef() → Widget