Skip to content

Commit 6e5f1a8

Browse files
committed
update ui
1 parent d8c78bf commit 6e5f1a8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/page/login/login_page.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class _LoginPageState extends State<LoginPage> with LoginBLoC {
101101
.login_text,
102102
color: Theme.of(context).primaryColor,
103103
textColor: GSYColors.textWhite,
104+
fontSize: 16,
104105
onPress: loginIn,
105106
),
106107
),
@@ -113,6 +114,7 @@ class _LoginPageState extends State<LoginPage> with LoginBLoC {
113114
.oauth_text,
114115
color: Theme.of(context).primaryColor,
115116
textColor: GSYColors.textWhite,
117+
fontSize: 16,
116118
onPress: oauthLogin,
117119
),
118120
),

lib/page/welcome_page.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class WelcomePage extends StatefulWidget {
2828
class _WelcomePageState extends State<WelcomePage> {
2929
bool hadInit = false;
3030

31-
String text = "Welcome";
31+
String text = "";
3232
double fontSize = 76;
3333

3434
@override
@@ -41,6 +41,12 @@ class _WelcomePageState extends State<WelcomePage> {
4141

4242
///防止多次进入
4343
Store<GSYState> store = StoreProvider.of(context);
44+
new Future.delayed(const Duration(seconds: 0), () {
45+
setState(() {
46+
text = "Welcome";
47+
fontSize = 60;
48+
});
49+
});
4450
new Future.delayed(const Duration(seconds: 1, milliseconds: 500), () {
4551
setState(() {
4652
text = "GSYGithubApp";

0 commit comments

Comments
 (0)