Flutter:自定义步进器
Flutter: Customizing Stepper
有没有办法改变步骤之间 "line" 的颜色?并删除填充以将 "line" 连接到台阶?
我怀疑。我认为您唯一的方法是创建自定义 Stepper
。正如您在源代码中看到的那样 - Stepper
是 StatefulWidget 而 _StepperState
是私有的(这些行是高度为 1.0 的容器) -
Container(
margin: const EdgeInsets.symmetric(horizontal: 8.0),
height: 1.0, color: Colors.grey.shade400, )
我看不出有什么办法可以改变它
有没有办法改变步骤之间 "line" 的颜色?并删除填充以将 "line" 连接到台阶?
我怀疑。我认为您唯一的方法是创建自定义 Stepper
。正如您在源代码中看到的那样 - Stepper
是 StatefulWidget 而 _StepperState
是私有的(这些行是高度为 1.0 的容器) -
Container(
margin: const EdgeInsets.symmetric(horizontal: 8.0),
height: 1.0, color: Colors.grey.shade400, )
我看不出有什么办法可以改变它