修改 Flutter 中字体的大小和颜色

 

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('修改 Flutter 中字体的大小和颜色'),
        ),
        body: Center(
          child: Text(
            'GetcharZp',
            style: TextStyle(
              fontSize: 50,
              color: Colors.red,
            ),
          ),
        ),
      ),
    );
  }
}
posted @ 2020-01-17 11:37  GetcharZp  阅读(4398)  评论(0编辑  收藏  举报