0

我的 Stepper Horizo​​ntal 有问题,因为即使我只有一个 TextFormfield,它仍然可以滚动,因为它说高度是无穷大。

Container(
            child: new Stepper(
              steps: _mySteps(),
              controlsBuilder: _createEventControlBuilder,
              type: StepperType.horizontal,
              currentStep: this._currentStep,
              physics: BouncingScrollPhysics(),
               onStepTappe: (){
               }
               onStepContinue: (){
               }
               onStepCancel: (){
               }
                });
              },
            ),
          ),


════════ (69) 渲染库捕捉到的异常════════════════════════════␕═══ ══════════════ RenderRepaintBoundary 对象在布局期间被赋予了无限大小。导致错误的小部件的用户创建的祖先是:Stepper NEEDS-COMPOSITING-BITS-UPDATE

4

1 回答 1

0
You can put height in your container like this 

Container(height: value)
于 2019-11-11T10:26:54.687 回答