@@ -88,37 +88,37 @@ class Light {
8888 SmartColor .parse ("rgba(0, 0, 0, 0.05)" );
8989}
9090
91- class WeuiApp extends StatelessWidget {
92- WeuiApp ({
91+ class WeUIApp extends StatelessWidget {
92+ WeUIApp ({
9393 @required this .child,
9494 this .theme,
9595 }) : assert (child != null );
9696 final Widget child;
97- final WeuiThemeData theme;
97+ final WeUIThemeData theme;
9898 @override
9999 Widget build (BuildContext context) {
100- return WeuiTheme (
100+ return WeUITheme (
101101 child: child,
102- data: theme ?? WeuiThemeData .light (),
102+ data: theme ?? WeUIThemeData .light (),
103103 );
104104 }
105105}
106106
107- class WeuiTheme extends StatelessWidget {
108- WeuiTheme ({
107+ class WeUITheme extends StatelessWidget {
108+ WeUITheme ({
109109 Key key,
110110 @required this .data,
111111 @required this .child,
112112 }) : assert (data != null ),
113113 assert (child != null ),
114114 super (key: key);
115- final WeuiThemeData data;
115+ final WeUIThemeData data;
116116 final Widget child;
117117
118- static WeuiThemeData of (BuildContext context) {
118+ static WeUIThemeData of (BuildContext context) {
119119 final _InheritedTheme inheritedTheme =
120120 context.inheritFromWidgetOfExactType (_InheritedTheme );
121- return inheritedTheme? .theme? .data ?? WeuiThemeData .light ();
121+ return inheritedTheme? .theme? .data ?? WeUIThemeData .light ();
122122 }
123123
124124 @override
@@ -131,8 +131,8 @@ class WeuiTheme extends StatelessWidget {
131131}
132132
133133@immutable
134- class WeuiThemeData extends Diagnosticable {
135- factory WeuiThemeData .light () => null ;
134+ class WeUIThemeData extends Diagnosticable {
135+ factory WeUIThemeData .light () => null ;
136136}
137137
138138class _InheritedTheme extends InheritedWidget {
@@ -143,7 +143,7 @@ class _InheritedTheme extends InheritedWidget {
143143 }) : assert (theme != null ),
144144 super (key: key, child: child);
145145
146- final WeuiTheme theme;
146+ final WeUITheme theme;
147147
148148 @override
149149 bool updateShouldNotify (_InheritedTheme old) => theme.data != old.theme.data;
0 commit comments