【发布时间】:2021-07-02 14:20:53
【问题描述】:
这是代码:(请回复我似乎找不到的错误
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('MyApp'),
centerTitle: true,
backgroundColor: Colors.cyan[300],
),
body: Center(
child: Text(
'This is MyApp',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
letterSpacing: 2.0,
color: Colors.blueGrey,
fontFamily:
),
),
),
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: Text(' CLICK!'),
backgroundColor: Colors.cyan[300],
),
),
));
【问题讨论】: