step-progress-indicator
step-progress-indicator copied to clipboard
Gradient Issue
After Implementing provided code for gradient, gradient was not applied in right way resulting gradient to transfer to unselected color while unselected color was coded correctly.
CircularStepProgressIndicator( gradientColor: LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Colors.cyan, Colors.orangeAccent], ), totalSteps: 100, currentStep: 50, stepSize: 10, selectedColor: Colors.greenAccent, unselectedColor: MediaQuery.of(context).platformBrightness == Brightness.dark ? Colors.grey[900] : CupertinoColors.systemGrey2, padding: 0, width: 80, height: 80, selectedStepSize: 15, roundedCap: (_, __) => true, ),