INNER CODE UNIT · Dart
MyApp
fluttercandies/wechat_flutter · lib/app.dart:11
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final model = Provider.of<GlobalModel>(context)..setContext(context);
return GetMaterialApp(
title: model.appName,
theme: ThemeData(
scaffoldBackgroundColor: bgColor,
hintColor: Colors.grey.withOpacity(0.3),
splashColor: Colors.transparent,
canvasColor: Colors.transparent,
),
debugShowCheckedModeBanner: false,
localizationsDelegates: [
S.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,