INNER CODE UNIT · Dart
MyApp
ys1231/appproxy · lib/main.dart:25
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
/// 构建界面
@override
Widget build(BuildContext context) {
/**
* 构建并返回一个MaterialApp实例。
* 这个函数不接受任何参数。
*
* @return 返回一个配置了特定主题和起始页面的MaterialApp实例。
*/
return BlocBuilder<ThemeBloc, ThemeState>(
builder: (context, themeState) {
return BlocBuilder<LanguageBloc, LanguageState>(
builder: (context, langState) {
return MaterialApp(