Flutter -- iOS -- Center
Posted 徒步阳光
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter -- iOS -- Center相关的知识,希望对你有一定的参考价值。
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 @override 12 Widget build(BuildContext context) { 13 // TODO: implement build 14 return new Scaffold( 15 appBar: new AppBar( 16 title: new Text(\'ios 导航栏\'), 17 ), 18 body: new Center( 19 child: new Text( 20 \'Hello Flutter\', 21 style: TextStyle( 22 fontSize: 36.0, 23 ), 24 ), 25 ), 26 ); 27 } 28 }
以上是关于Flutter -- iOS -- Center的主要内容,如果未能解决你的问题,请参考以下文章
错误记录发布 Flutter 插件包报错 ( ‘gmail.com‘ has insufficient permissions to upload new versions of package)(代
Flutter Error: Cannot run with sound null safety, because the following dependencies don‘t support(代