import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
{
Widget build(BuildContext context)
{
return MaterialApp
(
title: 'flutter Demo',
theme: ThemeData
(
primarySwatch: Colors.green,
),
home: Scaffold
(
body: Center
(
child: Text
(
"Hello World",
style: TextStyle
(
color: Colors.green,
fontSize: 30,
fontWeight: FontWeight.w500
),
),
),
),
);
}
}
fontWeight: FontWeight.w100 ~ w900