Is there a way to change the color of the Steps without creating a custom Stepper? the current step is blue.
https://docs.flutter.io/flutter/material/Stepper-class.html
https://docs.flutter.io/flutter/material/Step-class.html
Wrap your stepper in a Theme Widget.
body: Theme(
data: ThemeData(
accentColor: Colors.orange,
primarySwatch: Colors.orange,
colorScheme: ColorScheme.light(
primary: Colors.orange
)
),
child: Stepper(
steps: []
))
It will change the index color of the stepper as well as the CONTINUE button color to orange(Set the color as per your own requirement).
The color of the steps depends on ColorScheme.primary
color, to change it you have to wrap Stepper
with Theme
and in ThemeData
add colorScheme property like this:
Theme(
data: ThemeData(
colorScheme: Theme.of(context).colorScheme.copyWith(primary: yourColor),
),
child: Stepper(...),
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With