Listview 步进器在轻敲时未完全显示步进
每当我点击gif中显示的从国籍和以下开始的步骤时,它们的操作如下 我想让我的步进器向上或向下滚动,以充分显示每一步点击 尝试只保留listview而不保留formblocklistener,但不起作用 这是我的代码:Listview 步进器在轻敲时未完全显示步进,listview,flutter,scrollable,uistepper,stepper,Listview,Flutter,Scrollable,Uistepper,Stepper,每当我点击gif中显示的从国籍和以下开始的步骤时,它们的操作如下 我想让我的步进器向上或向下滚动,以充分显示每一步点击 尝试只保留listview而不保留formblocklistener,但不起作用 这是我的代码: return new Scaffold( appBar: AppBar( //backgroundColor: Colors.black, title: new Text('Edit Your Profile'), flexibleS
return new Scaffold(
appBar: AppBar(
//backgroundColor: Colors.black,
title: new Text('Edit Your Profile'),
flexibleSpace: Image(
image: AssetImage('lib/assets/BackToEarth.jpg'),
fit: BoxFit.cover,
),
leading: IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
print(user.profilePictureName);
Navigator.pop(context, true);
//Navigator.pop(context);
},
),
//forceElevated: innerBoxIsScrolled
),
body:FormBlocListener(
formBloc: _simpleFormBloc,
key: _formKey,
onSubmitting: (context, state) {
// Show the progress dialog
showDialog(
context: context,
barrierDismissible: false,
builder: (_) => WillPopScope(
onWillPop: () async => false,
child: Center(
child: Card(
child: Container(
width: 80,
height: 80,
padding: EdgeInsets.all(12.0),
child: CircularProgressIndicator(),
),
),
),
),
);
},
child: ListView(
children: <Widget>[
new Stepper(
physics: NeverScrollableScrollPhysics(),
steps: steps,
type: StepperType.vertical,
currentStep: this.currStep,
onStepTapped: (step) {
setState(() {
currStep = step;
});
},
controlsBuilder: (BuildContext context,
{VoidCallback onStepContinue, VoidCallback onStepCancel}) =>
Container(),
),
])
),
persistentFooterButtons: <Widget>[
_buildUploadBtn()
],
);
返回新脚手架(
appBar:appBar(
//背景颜色:Colors.black,
标题:新文本(“编辑您的个人资料”),
flexibleSpace:图像(
图片:AssetImage('lib/assets/BackToEarth.jpg'),
适合:BoxFit.cover,
),
领先:IconButton(
图标:图标(图标。箭头返回),
已按下:(){
打印(user.profilePictureName);
pop(上下文,true);
//Navigator.pop(上下文);
},
),
//强制提升:内包装箱为羊角形
),
正文:FormBlocListener(
formBloc:_simpleFormBloc,
键:_formKey,
提交:(上下文、状态){
//显示进度对话框
显示对话框(
上下文:上下文,
禁止:错误,
建筑商:()=>Willposcope(
onWillPop:()async=>false,
儿童:中心(
孩子:卡片(
子:容器(
宽度:80,
身高:80,
填充:所有边缘设置(12.0),
子对象:CircularProgressIndicator(),
),
),
),
),
);
},
子:ListView(
儿童:[
新型步进电机(
物理学:NeverscrollableScroll物理学(),
步骤:步骤,
类型:StepperType.vertical,
currentStep:this.currStep,
步骤:(步骤){
设置状态(){
步进=步进;
});
},
controlsBuilder:(BuildContext上下文,
{VoidCallback onStepContinue,VoidCallback onStepCancel})=>
容器(),
),
])
),
PersistentFooter按钮:[
_buildUploadBtn()
],
);
尝试了很多与物理学有关的东西。。感谢您的帮助