防采集标记:亢少军老师的课程和资料

import 'package:flutter/material.dart';

void main() => runApp(
      new MaterialApp(
        title: 'Center居中布局示例',
        home: new LayoutDemo(),
      ),
    );

class LayoutDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('Center居中布局示例'),
      ),
      body: new Center(
        child: new Text(
          'Hello Flutter',
          style: TextStyle(
            fontSize: 36.0,
          ),
        ),
      ),
    );
  }
}

@作者: 亢少军

第7章页面布局-Center居中布局

相关文章:

  • 2021-08-01
  • 2021-09-04
  • 2021-07-19
  • 2021-10-05
  • 2022-01-12
  • 2021-09-27
  • 2021-11-01
  • 2021-10-31
猜你喜欢
  • 2022-01-09
  • 2021-07-24
  • 2021-05-27
  • 2022-01-03
  • 2021-06-18
  • 2021-05-03
  • 2021-11-01
相关资源
相似解决方案