GSearchAppBar class
Create app bar with search bar.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GSearchAppBar
- Implemented types
Constructors
-
GSearchAppBar({Key? key, required String title, String? subtitle, TextEditingController? controller, bool? centerTitle, PreferredSizeWidget? bottom, double? elevation, Widget? leading, bool automaticallyImplyLeading = true, double? leadingWidth, List<
Widget> ? actions, required String hintText, TextInputType? keyboardType, void onChanged(String)?, void onFieldSubmitted(String)?, void onActionPressed()?, bool? open, Color? backgroundColor, Color? backgroundColorBuilder(ColorScheme)?, Color? foregroundColor, Color? foregroundColorBuilder(ColorScheme)?, Color? cursorColor, Color? cursorColorBuilder(ColorScheme)?}) -
const
Properties
-
actions
→ List<
Widget> ? -
A list of Widgets to display in a row after the title.
final
- automaticallyImplyLeading → bool
-
If true allow to imply the leading widget.
final
- backgroundColor → Color?
-
Set background color.
final
- backgroundColorBuilder → (Color? Function(ColorScheme)?)
-
Set background color using colorBuilder
final
- bottom → PreferredSizeWidget?
-
This widget appears across the bottom of the app bar.
final
- centerTitle → bool?
-
If true align the title to the center.
final
- controller → TextEditingController?
-
Controls the text being edited.
final
- cursorColor → Color?
-
The default color for cursorColor,
selectionHandleColor
andselectionColor
. NoteselectionHandleColor
only changed on first build.final - cursorColorBuilder → (Color? Function(ColorScheme)?)
-
Set cursor color using colorBuilder
final
- elevation → double?
-
Size of the shadow below app bar.
final
- foregroundColor → Color?
-
The default color for Text and Icons within the app bar.
final
- foregroundColorBuilder → (Color? Function(ColorScheme)?)
-
Set foreground color using colorBuilder
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String
-
Text that suggests what sort of input the field accepts.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
Set keyboard type.
final
- leading → Widget?
-
A widget to display before the GAppBar's title.
final
- leadingWidth → double?
-
Defines the width of leading widget.
final
- onActionPressed → (void Function()?)
-
A callback after the user press the action button.
final
- onChanged → (void Function(String)?)
-
A callback after this field value changed.
final
- onFieldSubmitted → (void Function(String)?)
-
A callback after this field submitted.
final
- open → bool?
-
Whether the search bar open or not.
final
- preferredSize → Size
-
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String?
-
Text to display as a subtitle, below the title.
final
- title → String
-
Text to display as title.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GSearchAppBar> -
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