摘要: 1 import 'package:flutter/material.dart'; 2 3 class LayoutDemo extends StatelessWidget{ 4 @override 5 Widget build(BuildContext context) { 6 // TODO: implement build 7 return new Scaffold( 8 appBar: n 阅读全文
posted @ 2019-11-27 18:46 徒步阳光855 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1 import 'package:flutter/material.dart'; 2 3 class LayoutDemo extends StatelessWidget{ 4 @override 5 Widget build(BuildContext context) { 6 // TODO: implement build 7 return new ... 阅读全文
posted @ 2019-11-27 17:16 徒步阳光855 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 1 import 'package:flutter/material.dart'; 2 3 void main() => runApp( 4 new MaterialApp( 5 title: 'Center居中布局', 6 home: new LayoutDemo(), 7 ), 8 ); 9 10 class LayoutDemo extends StatelessWidget{ 11 @ov 阅读全文
posted @ 2019-11-27 11:38 徒步阳光855 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 import 'package:flutter/cupertino.dart'; 2 import 'package:flutter/material.dart'; 3 4 void main() =>runApp( 5 new MaterialApp( 6 title: 'Container布局容器示例', 7 home: new LayoutDemo(), 8 ) 9 ); 10 11 c 阅读全文
posted @ 2019-11-27 11:14 徒步阳光855 阅读(244) 评论(0) 推荐(0) 编辑