StarCustomIndicator class
Classic indicator.
Base widget for ClassicHeader
and ClassicFooter
.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- StarCustomIndicator
- Available extensions
Constructors
- StarCustomIndicator.new({Key? key, required IndicatorState state, required MainAxisAlignment mainAxisAlignment, Color? backgroundColor, BoxDecoration? boxDecoration, required String dragText, required String armedText, required String readyText, required String processingText, required String processedText, required String noMoreText, required String failedText, bool showText = true, required String messageText, required bool reverse, bool showMessage = true, double? textDimension, double iconDimension = 24, double spacing = 16, Widget? succeededIcon, Widget? failedIcon, Widget? noMoreIcon, StarCuIPullIconBuilder? pullIconBuilder, TextStyle? textStyle, StarCuITextBuilder? textBuilder, TextStyle? messageStyle, StarCuIMessageBuilder? messageBuilder, Clip clipBehavior = Clip.hardEdge, IconThemeData? iconTheme, double? progressIndicatorSize, double? progressIndicatorStrokeWidth})
Properties
- armedText → String
-
Text on
IndicatorMode.armed
.final - backgroundColor → Color?
-
Background color.
Ignored if boxDecoration is not null.
final
- boxDecoration → BoxDecoration?
-
Box decoration.
final
- clipBehavior → Clip
-
Link Stack.clipBehavior.
final
- dragText → String
-
Text on
IndicatorMode.drag
.final - failedIcon → Widget?
-
Icon when
IndicatorResult.fail
.final - failedText → String
-
Text on
IndicatorResult.fail
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- iconDimension → double
-
The dimension of the icon area.
final
- iconTheme → IconThemeData?
-
Icon style.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
The location of the widget.
Only supports MainAxisAlignment.center,
MainAxisAlignment.start and MainAxisAlignment.end.
final
- messageBuilder → StarCuIMessageBuilder?
-
Build message.
final
- messageStyle → TextStyle?
-
Text style.
final
- messageText → String
-
Message text.
%T will be replaced with the last time.
final
- noMoreIcon → Widget?
-
Icon when
IndicatorResult.noMore
.final - noMoreText → String
-
Text on
IndicatorResult.noMore
.final - processedText → String
-
Text on
IndicatorMode.processed
.final - processingText → String
-
Text on
IndicatorMode.processing
.final - progressIndicatorSize → double?
-
Progress indicator size.
final
- progressIndicatorStrokeWidth → double?
-
Progress indicator stroke width.
See CircularProgressIndicator.strokeWidth.
final
- pullIconBuilder → StarCuIPullIconBuilder?
-
Icon on pull builder.
final
- readyText → String
-
Text on
IndicatorMode.ready
.final - reverse → bool
-
True for up and left.
False for down and right.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showMessage → bool
-
Whether to display message.
final
- showText → bool
-
Whether to display text.
final
- spacing → double
-
Spacing between text and icon.
final
- state → IndicatorState
-
Indicator properties and state.
final
- succeededIcon → Widget?
-
Icon when
IndicatorResult.success
.final - textBuilder → StarCuITextBuilder?
-
Build text.
final
- textDimension → double?
-
The dimension of the text area.
When less than 0, calculate the length of the text widget.
final
- textStyle → TextStyle?
-
Text style.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StarCustomIndicator> -
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
-
go(
BuildContext context, {WidgetBuilder? wb, bool replace = false}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
routeName(
) → String -
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
-
xAppBarMake(
double h) → Widget -
xGestureTouchContainer(
bool enable, {GestureTapCallback? onTap, GestureCancelCallback? onLongTap}) → Widget -
xInputContainer(
) → InputTouchContainer -
xLoadingContainer(
bool b, {required Widget loadingView}) → Widget -
xNoneTouchContainer(
bool enable) → Widget -
xOnPopWrapper(
bool canPop, {required void onPop(bool didPop, dynamic data)?}) → Widget -
xOnTap(
Function onTap, {bool enable = true, bool withContainer = false, int cd = 800}) → Widget -
xSafeContainer(
bool enable) → Widget -
xVisible(
bool b) → Widget
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited