OneUIView class

Inheritance

Constructors

OneUIView({Key? key, required Widget title, bool automaticallyImplyLeading = true, Widget? largeTitle, TextStyle? largeTitleTextStyle, List<Widget>? actions, bool useOneUITextStyle = true, double collapsedHeight = kToolbarHeight, double? expandedHeight, double? expandedHeightRatio, double? actionSpacing, Color? backgroundColor, Widget? child, List<Widget>? slivers, GlobalKey<NestedScrollViewState>? globalKey, bool initCollapsed = false})
const

Properties

actions List<Widget>?
A list of Widgets to display in a row after the title widget.
final
actionSpacing double?
The space between actions.
final
automaticallyImplyLeading bool
Controls whether we should try to imply the leading widget if null.
final
backgroundColor Color?
The background color for app bar.
final
child Widget?
The widget below this widget in the tree. One of child and slivers must be null and the other must not be null.
final
collapsedHeight double
Defines the height of the app bar when it is collapsed.
final
expandedHeight double?
The size of the app bar when it is fully expanded.
final
expandedHeightRatio double?
The ratio of the app bar to screen height when it is fully expanded.
final
globalKey GlobalKey<NestedScrollViewState>?
The globalKey that is used to get innerScrollController of NestedScrollViewState.
final
hashCode int
The hash code for this object.
no setterinherited
initCollapsed bool
If true, display a default collapsed app bar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
largeTitle Widget?
The text to display on expanded app bar.
final
largeTitleTextStyle TextStyle?
The style to use for large title text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slivers List<Widget>?
The slivers to place inside the viewport. One of child and slivers must be null and the other must not be null.
final
title Widget
The text to display on collapsed app bar. If null, it shows largeTitle.
final
useOneUITextStyle bool
If true, use default One UI text style.
final

Methods

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