Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 951e869

Browse files
Weui-->WeUI
1 parent 7455410 commit 951e869

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎lib/src/base/theme.dart‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

138138
class _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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /