摘要:
paddingwrapcontainercolumnrowtextexpandedflexFractionallySizedBox 阅读全文
摘要:
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... 阅读全文
摘要:
当需要在一个区域里面取百分比尺寸的时候,可以使用这个,比方说,高度40%宽度70%的区域。当然,AspectRatio也可以达到近似的效果。 阅读全文
摘要:
import 'package:flutter/material.dart'; void main() { runApp(MaterialApp(home: new MyApp())); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { // TO... 阅读全文
摘要:
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 阅读全文