WOICurvedBar class

The WOICurvedBar is an arc shape progress bar

WOICurvedBar(
finalValue: finalValue,
currentValue: curentValue,
arcBorders: true,
padding: 20,
size: 220,
backgroundBorderRadius: 200,
barColor: Colors.grey[300]!,
fillColor: Colors.purple,
borderColor: Colors.blue[900]!,
backgroundColor: Colors.green[200]!,
center: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(top: 20.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
curentValue.toString(),
style: const TextStyle(
  fontWeight: FontWeight.bold, fontSize: 70),
),
const Padding(
padding: EdgeInsets.only(bottom: 10),
child: Text(
'/',
style: TextStyle(
  fontWeight: FontWeight.w200, fontSize: 80),
),
),
Text(
finalValue.toString(),
style: const TextStyle(
  fontWeight: FontWeight.bold, fontSize: 70),
),
],
),
),
const Text(
'Check-Ins',
style: TextStyle(fontSize: 16),
),
],
),
),

The WOICurvedBar takes final value(completion value) and current value(the progress value) as required parameters.

Inheritance

Constructors

WOICurvedBar({required int finalValue, required int currentValue, Widget center = const SizedBox(), double size = 300, Color barColor = Colors.grey, Color fillColor = Colors.orange, EdgeInsetsGeometry padding = const EdgeInsets.all(0), Color backgroundColor = Colors.white, double backgroundBorderRadius = 20, double arcWidth = 20, bool arcBorders = false, Color borderColor = Colors.black, double borderWidth = 5, double arcLength = -20, ArcDirection arcDirection = ArcDirection.up, bool rotateCenter = false, Key? key})
The WOICurvedBar is an arc shape progress bar The section bar takes final value(completion value) and current value(the progress value) as required parameters.
const

Properties

arcBorders bool
final
arcDirection ArcDirection
final
arcLength double
final
arcWidth double
final
backgroundBorderRadius double
final
backgroundColor Color
final
barColor Color
final
borderColor Color
final
borderWidth double
final
center Widget
final
currentValue int
final
fillColor Color
final
finalValue int
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry
final
rotateCenter bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<WOICurvedBar>
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