摘要:
import 'package:flutter/material.dart'; class ScaffoldPage extends StatefulWidget { const ScaffoldPage({Key? key}) : super(key: key); @override State< 阅读全文
摘要:
import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @overri 阅读全文
摘要:
# 以下两个国际化 flutter_localizations: sdk: flutter intl: ^0.17.0 # Add this line # 去除网页URL中的“#”(hash) https://flutter.cn/docs/development/ui/navigation/url 阅读全文
摘要:
import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext con 阅读全文
摘要:
import 'package:flutter/widgets.dart'; void main() => runApp(const MyApp) //无状态组件开始 class MyApp extends StatelessWidget { const MyApp({Key? key}) : su 阅读全文
摘要:
import 'package:flutter/widgets.dart'; void main() => runApp(); //main 函数为应用程序的入口 void main() { //runApp(Widget参数),它的功能是启动Flutter应用 runApp(const MyApp 阅读全文