Flutter app name显示在package name上,AppBar title显示在AppBar of the home page上,所以标题MaterialApp(title: 'Rectangle App',);
在Flutter 项目中使用的位置.
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Rectangle App',
home: Scaffold(
appBar: AppBar(
title: Text('Rectangle App Home Page'),
),
body: HelloRectangle(),
),
);
}
}