SliverFillRemainingWhen
中有一些小部件滚动页面,这些小部件隐藏在SliverAppBar
下方。
我想查看AppBar下面的小部件。
return new Scaffold(
body: new Stack(
children: <Widget>[
new CustomScrollView(
controller: _scrollController,
slivers: [
new SliverAppBar(
expandedHeight: 256.0,
pinned: true,
snap: true,
floating: true,
forceElevated: true,
flexibleSpace: new FlexibleSpaceBar(
title: new Text("Status Entry"),
centerTitle: true,
background: new Image.asset(
"assets/images/noimage.png",
fit: BoxFit.cover,
),
),
),
SliverFillRemaining(
child: Center(
child: new SingleChildScrollView(
padding: const EdgeInsets.only(
left: 20.0, right: 20.0, top: 0.0, bottom: 0.0),
child: new Column(
//mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
TextField(
enabled: false, // will disable paste operation
decoration: InputDecoration(labelText: 'Work name'),
),
TextFormField(
decoration: InputDecoration(
labelText: 'Enter your current status'),
),
],
)),
),
),
我的输出是这样的: