Widget stepPickerData(BuildContext context, SwapRequest snapData) {
final makeSwapRequestBloc = MakeSwapRequestProvider.of(ctx);
Widget child1 = Container(
child: Column(
children: <Widget>[
Expanded(
child: ListTile(title: Text("w"),)
)
],
),
);
List<Step> mySteps = [
new Step(
// Title of the Step
title: Text("Step 1"),
content: child1,
isActive: true),
new Step(
title: new Text("Step 2"),
content: child2,
isActive: true),
];
return new Container(
child: new Stepper(
currentStep: this.currentStep,
steps: mySteps,
type: StepperType.horizontal,
onStepContinue: () {
if (currentStep < mySteps.length - 1) {
currentStep = currentStep + 1;
} else {
currentStep = currentStep;
}
},
),
);
}
I have stepper widget with steps and step widget consists Expanded child.The expanded child isnot hold in step widget.
The error throwing is:
RenderFlex children have non-zero flex but incoming height constraints are unbounded.