We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://codelabs.flutter-io.cn/codelabs/first-flutter-app-pt2-cn/index.html#6
No response
// 这是我的代码 class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final wordPair = WordPair.random(); return MaterialApp( title: 'Welcome to Flutter', theme: ThemeData( primaryColor: Colors.white, ), // 程序的主题 home: Scaffold( appBar: AppBar(title: const Text('hello word')), body: Center(child: Text(wordPair.asPascalCase)) ) ); } }
// 这个是文档的代码 class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( title: 'Startup Name Generator', theme: new ThemeData( // 新增代码开始... primaryColor: Colors.white, ), // ... 代码新增结束 home: new RandomWords(), ); } }
希望知道这个问题是什么
The text was updated successfully, but these errors were encountered:
class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( // ... theme: new ThemeData( primarySwatch: Colors.blueGrey, ), // ... ); } }
Sorry, something went wrong.
No branches or pull requests
页面 URL
https://codelabs.flutter-io.cn/codelabs/first-flutter-app-pt2-cn/index.html#6
页面源地址
No response
描述问题
主题并没有发生改变
期望如何修复
希望知道这个问题是什么
附加信息
No response
The text was updated successfully, but these errors were encountered: