ThemedAppBarAvatar class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ThemedAppBarAvatar
Constructors
-
ThemedAppBarAvatar({Key? key, bool enableAbout = true, VoidCallback? onSettingsTap, VoidCallback? onProfileTap, VoidCallback? onLogoutTap, VoidCallback? onThemeSwitchTap, required String appTitle, String companyName = 'Golden M, Inc', required AppThemedAsset logo, required AppThemedAsset favicon, String userName = "Golden M", Avatar? userDynamicAvatar, String? version, List<
ThemedNavigatorItem> additionalActions = const [], Color? backgroundColor, bool asTaskBar = false, }) -
Creates a ThemedAppBarAvatar widget.
const
Properties
-
additionalActions
→ List<
ThemedNavigatorItem> -
additionalActions is the list of additional actions to be displayed in the app bar.
By default is
[]
.final - appTitle → String
-
appTitle is the title of the app.
final
- asTaskBar → bool
-
asTaskBar is a boolean that indicates if the app bar is used as a task bar.
final
- backgroundColor → Color?
-
backgroundColor is the background color of the app bar.
Overrides the default background color from
Theme.of(context).scaffoldBackgroundColor
.final - companyName → String
-
companyName is the name of the company.
final
- enableAbout → bool
-
enableAbout is a boolean that enables the about button.
final
- favicon → AppThemedAsset
-
favicon is the favicon of the app. Can be a path or a url.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- logo → AppThemedAsset
-
logo is the logo of the app. Can be a path or a url.
final
- onLogoutTap → VoidCallback?
-
onLogoutTap is the callback to be executed when the logout button
final
-
onNavigatorPop is the callback to be executed when the back button is tapped.
By default is
Navigator.of(context).pop
final -
onNavigatorPush is the callback to be executed when a navigator item is tapped.
By default is
Navigator.of(context).pushNamed
final - onProfileTap → VoidCallback?
-
onProfileTap is the callback to be executed when the profile button
final
- onSettingsTap → VoidCallback?
-
onSettingsTap is the callback to be executed when the settings button
final
- onThemeSwitchTap → VoidCallback?
-
onThemeSwitchTap is a callback that is called when the theme switch
button is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userDynamicAvatar → Avatar?
-
userDynamicAvatar is the dynamic avatar of the user.
In other components like
ThemedDrawer
, the prop isThemedDrawer.userDynamicAvatar
.final - userName → String
-
userName is the name of the user.
final
- version → String?
-
version is the version of the app.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ThemedAppBarAvatar> -
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