PreferencesRoot class abstract

Base class for all preference roots. PreferencesRoot corresponds to a page where each root can have its own app bar and cards. The getCards method should be overridden to provide the cards for the root. The getExternalSearchTiles method can be overridden to provide external search tiles for the root which will be displayed in the search results only. The buildAppBar method can be overridden to provide a custom app bar for the root. The PreferencesRoot also handles the search logic. When the user searches for a tile, the cards are replaced by individual tiles that match the search query. The search query is performed deep in the widget tree.

Inheritance
Implementers

Constructors

PreferencesRoot({Key? key, String? title, Widget? customAppBar})
const

Properties

actionName → String?
The screen view reported when this root is opened.
no setter
customAppBar → Widget?
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
final

Methods

actions(BuildContext context) → SmoothPopupMenuButton?
buildAppBar(BuildContext context) → Widget
buildCardsList(BuildContext context, List<PreferenceCard> cards) → Widget
buildScaffold(BuildContext context, Widget content) → Widget
buildSearchResults(BuildContext context, List<PreferenceTile> tiles) → Widget
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<PreferencesRoot>
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
getCards(BuildContext context) → List<PreferenceCard>
getExternalSearchTiles(BuildContext context) → List<ExternalSearchPreferenceTile>
getFooter() → WidgetBuilder?
getHeader() → WidgetBuilder?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareForBuild(BuildContext context) → void
searchFoodTiles(BuildContext context, String query) → List<PreferenceTile>
searchTiles(BuildContext context, String query) → List<PreferenceTile>
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

Operators

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