Môi trường
Dart, Flutter
Giải pháp
Rất đơn giản, để cuộn trang cho cả phần body, hãy dùng SingleChildScrollView bằng cách wrap cả widget đó với SingleChildScrollView:
body: SingleChildScrollView(
child: Stack(
children: <Widget>[
new Container(
decoration: BoxDecoration(
image: DecorationImage(...),
new Column(children: [
new Container(...),
new Container(...... ),
new Padding(
child: SizedBox(
child: RaisedButton(..),
),
....
...
); // Single child scroll view
Từ khóa
How to scroll page in flutter
Không có nhận xét nào:
Đăng nhận xét