Commit ea8da05f authored by Adam Barth's avatar Adam Barth Committed by GitHub

Add RTL support to Stepper (#11873)

Fixes #11379
parent 4670c926
...@@ -354,7 +354,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin { ...@@ -354,7 +354,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
child: const Text('CONTINUE'), child: const Text('CONTINUE'),
), ),
new Container( new Container(
margin: const EdgeInsets.only(left: 8.0), margin: const EdgeInsetsDirectional.only(start: 8.0),
child: new FlatButton( child: new FlatButton(
onPressed: widget.onStepCancel, onPressed: widget.onStepCancel,
textColor: cancelColor, textColor: cancelColor,
...@@ -457,9 +457,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin { ...@@ -457,9 +457,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
] ]
), ),
new Container( new Container(
margin: const EdgeInsets.only( margin: const EdgeInsetsDirectional.only(start: 12.0),
left: 12.0
),
child: _buildHeaderText(index) child: _buildHeaderText(index)
) )
] ]
...@@ -470,8 +468,8 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin { ...@@ -470,8 +468,8 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
Widget _buildVerticalBody(int index) { Widget _buildVerticalBody(int index) {
return new Stack( return new Stack(
children: <Widget>[ children: <Widget>[
new Positioned( new PositionedDirectional(
left: 24.0, start: 24.0,
top: 0.0, top: 0.0,
bottom: 0.0, bottom: 0.0,
child: new SizedBox( child: new SizedBox(
...@@ -489,9 +487,9 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin { ...@@ -489,9 +487,9 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
new AnimatedCrossFade( new AnimatedCrossFade(
firstChild: new Container(height: 0.0), firstChild: new Container(height: 0.0),
secondChild: new Container( secondChild: new Container(
margin: const EdgeInsets.only( margin: const EdgeInsetsDirectional.only(
left: 60.0, start: 60.0,
right: 24.0, end: 24.0,
bottom: 24.0, bottom: 24.0,
), ),
child: new Column( child: new Column(
...@@ -565,7 +563,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin { ...@@ -565,7 +563,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
), ),
), ),
new Container( new Container(
margin: const EdgeInsets.only(left: 12.0), margin: const EdgeInsetsDirectional.only(start: 12.0),
child: _buildHeaderText(i), child: _buildHeaderText(i),
), ),
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment