
根据下图,页脚中出现红色条纹,屏幕不滚动.
有什么可以滚动屏幕?
main.dart
import 'package:Flutter/material.dart';voID main() { runApp(new MyApp());}class MyApp extends StatelessWidget { @overrIDe Widget build(BuildContext context) { return new MaterialApp( Title: "Myapp",home: new HomePage(),); }}class HomePage extends StatelessWidget { @overrIDe Widget build(BuildContext context) => new Scaffold( appbar: new Appbar( backgroundcolor: new color(0xFF26C6DA),),body: new Column( children: <Widget>[ new Card( child: new Column( mainAxisSize: MainAxisSize.min,children: <Widget>[ const ListTile( leading: const Icon(Icons.album),Title: const Text('The Enchanted Nightingale'),subTitle: const Text('Music by JulIE Gable. Lyrics by SIDney Stein.'),],... ... ... ],) );} 解决方法 列不滚动.尝试使用ListVIEw替换外部列.你可能需要把shrinkWrap:true放在上面. 总结 以上是内存溢出为你收集整理的dart – Flutter – 屏幕不滚动全部内容,希望文章能够帮你解决dart – Flutter – 屏幕不滚动所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)