BaiomySegmentedCircularNextButton class
A circular icon button surrounded by an animated segmented progress ring.
The ring is divided into totalPages segments. As currentPage advances, segments fill with an animated transition driven internally by the widget.
All visual parameters are optional and fall back to sensible defaults so the widget works with zero configuration beyond the required fields.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BaiomySegmentedCircularNextButton
Constructors
- BaiomySegmentedCircularNextButton({Key? key, required int currentPage, required int totalPages, required VoidCallback onTap, Color? ringColor, Color? ringBackgroundColor, double ringStrokeWidth = 3.0, double ringGapAngle = 0.1, double buttonSize = 60.0, double innerButtonSize = 50.0, Color? buttonColor, Color? buttonShadowColor, IconData icon = Icons.arrow_forward, Color iconColor = Colors.white, double iconSize = 24.0, Duration animationDuration = const Duration(milliseconds: 400), Curve animationCurve = Curves.easeInOut})
-
const
Properties
- animationCurve → Curve
-
final
- animationDuration → Duration
-
final
-
Inner circle fill color. Defaults to ColorScheme.primary.
final
-
Shadow color for the inner circle. Defaults to buttonColor at 20 % opacity.
final
-
Outer bounding box size (ring + button together).
final
- currentPage → int
-
Zero-based index of the current page.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
final
- iconColor → Color
-
final
- iconSize → double
-
final
- innerButtonSize → double
-
Diameter of the tappable inner circle.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → VoidCallback
-
Called when the button is tapped.
final
- ringBackgroundColor → Color?
-
Unfilled segment color. Defaults to ringColor at 12 % opacity.
final
- ringColor → Color?
-
Filled segment color. Defaults to ColorScheme.primary.
final
- ringGapAngle → double
-
Gap between each segment, in radians.
final
- ringStrokeWidth → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalPages → int
-
Total number of pages (= total ring segments).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BaiomySegmentedCircularNextButton> -
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, 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