GetStreamPage<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GetStreamPage
Constructors
-
GetStreamPage({Key? key, required Stream<
T> stream, required GetWidgetBuilder<T> obxWidgetBuilder, T? initialData, RxBoolAuth? rxBoolAuth, WidgetsErrorBuilder? widgetErrorBuilder, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, Widget? pageDrawer, Widget? pageEndDrawer, Widget? pageBottomSheet, Color? pageBackgroundColor, String? restorationId, bool? resizeToAvoidBottomInset, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool extendBody = false, bool extendBodyBehindAppBar = false, Color? drawerScrimColor, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true, Color? appBarbackgroundColor, Widget? title, bool centerTitle = false, double elevation = 4.0, List<Widget> actions = const <Widget>[], IconThemeData? iconTheme, Widget? iconConnectyOffAppBar, Color? iconConnectyOffAppBarColor}) -
iconConnectyOffAppBar Appears when the connection status is off.
There is already a default icon. If you don't want to present a choice
hideDefaultConnectyIconOffAppBar
= true; If you want to have a custom icon, dohideDefaultConnectyIconOffAppBar
= true; and set the iconConnectyOffAppBar`.const
Properties
-
actions
→ List<
Widget> -
final
- appBarbackgroundColor → Color?
-
AppBar parameters
final
- centerTitle → bool
-
final
- drawerDragStartBehavior → DragStartBehavior
-
final
- drawerEdgeDragWidth → double?
-
final
- drawerEnableOpenDragGesture → bool
-
final
- drawerScrimColor → Color?
-
final
- elevation → double
-
final
- endDrawerEnableOpenDragGesture → bool
-
final
- extendBody → bool
-
final
- extendBodyBehindAppBar → bool
-
final
- floatingActionButton → Widget?
-
floatingActionButton , pageDrawer ,
floatingActionButtonLocation ,
floatingActionButtonAnimator ...
are passed on to the Scaffold.
final
- floatingActionButtonAnimator → FloatingActionButtonAnimator?
-
final
- floatingActionButtonLocation → FloatingActionButtonLocation?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconConnectyOffAppBar → Widget?
-
iconConnectyOffAppBar Displayed on the AppBar when the internet
connection is switched off.
It is always the closest to the center.
final
- iconConnectyOffAppBarColor → Color?
-
final
- iconTheme → IconThemeData?
-
final
- initialData → T?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
obxWidgetBuilder
→ GetWidgetBuilder<
T> -
obxWidgetBuilder This function starts every time we receive
snapshot.data through the stream. To set up your page, you receive
the context, the streamObject which is snapshot.data.
final
- pageBackgroundColor → Color?
-
final
-
final
- pageBottomSheet → Widget?
-
final
- pageDrawer → Widget?
-
final
- pageEndDrawer → Widget?
-
final
-
final
- primary → bool
-
final
- resizeToAvoidBottomInset → bool?
-
final
- restorationId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- rxBoolAuth → RxBoolAuth?
-
rxBoolAuth Insert your RxBool here that changes with the auth
status to have reactivity.
final
-
stream
→ Stream<
T> -
stream Just add your stream and you will receive streamObject which is
snapshot.data to build your page.
final
- title → Widget?
-
final
- widgetErrorBuilder → WidgetsErrorBuilder?
-
widgetErrorBuilder Widget built by the Object error returned by the
stream error.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _GetStreamPageState< T> -
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