Search code examples
dartflutterstepper

Flutter: Customizing Stepper


Is there a way to change the color of the "line" between the steps? And also remove the padding to connect the "line" to the steps?

enter image description here


Solution

  • I doubt. I think your only way is create your custom Stepper. As you can see in sources - Stepper is StatefulWidget and _StepperState is private (these lines are Containers with height 1.0) -

    Container( 
        margin: const EdgeInsets.symmetric(horizontal: 8.0), 
        height: 1.0, color: Colors.grey.shade400, )
    

    I don't see any way to change it