DatePickerHeader class
Re-usable widget that displays the selected date (in large font) and the help text above it.
These types include:
- Single Date picker with calendar mode.
- Single Date picker with manual input mode.
helpText, orientation, icon, onIconPressed are required and must be non-null.
- Inheritance
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DatePickerHeader
Constructors
- DatePickerHeader({Key key, @required String helpText, @required String titleText, String titleSemanticsLabel, @required TextStyle titleStyle, @required Orientation orientation, bool isShort: false, @required IconData icon, @required String iconTooltip, @required VoidCallback onIconPressed})
-
Creates a header for use in a date picker dialog.
const
Properties
- hashCode → int
-
The hash code for this object. [...]
@nonVirtual, read-only, inherited
- helpText → String
-
The text that is displayed at the top of the header. [...]
final
- icon → IconData
-
The mode-switching icon that will be displayed in the lower right
in portrait, and lower left in landscape. [...]
final
- iconTooltip → String
-
The text that is displayed for the tooltip of the icon.
final
- isShort → bool
-
Indicates the header is being displayed in a shorter/narrower context. [...]
final
- key → Key
-
Controls how one widget replaces another widget in the tree. [...]
final, inherited
- onIconPressed → VoidCallback
-
Callback when the user taps the icon in the header. [...]
final
- orientation → Orientation
-
The orientation is used to decide how to layout its children.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- titleSemanticsLabel → String
-
The semantic label associated with the titleText.
final
- titleStyle → TextStyle
-
The TextStyle that the title text is displayed with.
final
- titleText → String
-
The text that is displayed at the center of the header.
final
Methods
-
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. [...]
@protected, inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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 -
Returns 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. [...]
@nonVirtual, inherited