摘要: paddingwrapcontainercolumnrowtextexpandedflexFractionallySizedBox 阅读全文
posted @ 2019-03-21 13:29 CrossPython 阅读(458) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; void main() { runApp(MaterialApp(home: new MyApp())); } class MyApp extends StatelessWidget { var width = 80.0; var height = 60.0; @override Widg... 阅读全文
posted @ 2019-03-21 13:16 CrossPython 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 当需要在一个区域里面取百分比尺寸的时候,可以使用这个,比方说,高度40%宽度70%的区域。当然,AspectRatio也可以达到近似的效果。 阅读全文
posted @ 2019-03-21 12:32 CrossPython 阅读(267) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; void main() { runApp(MaterialApp(home: new MyApp())); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { // TO... 阅读全文
posted @ 2019-03-21 11:49 CrossPython 阅读(510) 评论(0) 推荐(0) 编辑
摘要: The problem is not that you have not wrapped your widgets into MaterialApp. As the documentation says this error occurs due to the nesting of the same 阅读全文
posted @ 2019-03-21 09:48 CrossPython 阅读(1151) 评论(0) 推荐(0) 编辑