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,
),
),
),
),
);
}
}
Aspire to inspire until I expire