想在flutter中添加注册页面中的滚动



我尝试了NestedScrollview、CustomScrollview,但没有得到正确的输出。我想在不带列表的注册页面中添加滚动。我将数据添加为TextFormField。父对象是Container,在Container中添加Scfold作为子对象。这是我的代码:

body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Form(
key: _formKey,
child: Column(

在Widget构建中添加SingleChildScrollView(BuildContext上下文({//像这样:return SingleChildScrollView(子项:列(}

最新更新