@@ -7,6 +7,7 @@ import 'package:appflowy/mobile/presentation/setting/launch_settings_page.dart';
77import 'package:appflowy/user/application/sign_in_bloc.dart' ;
88import 'package:appflowy/user/presentation/screens/sign_in_screen/widgets/anonymous_sign_in_button.dart' ;
99import 'package:appflowy/user/presentation/screens/sign_in_screen/widgets/widgets.dart' ;
10+ import 'package:appflowy/user/presentation/widgets/flowy_logo_title.dart' ;
1011import 'package:appflowy_ui/appflowy_ui.dart' ;
1112import 'package:easy_localization/easy_localization.dart' ;
1213import 'package:flowy_infra_ui/flowy_infra_ui.dart' ;
@@ -22,33 +23,30 @@ class MobileSignInScreen extends StatelessWidget {
2223 @override
2324 Widget build (BuildContext context) {
2425 const double spacing = 16 ;
25- final colorScheme = Theme . of (context).colorScheme;
26+
2627 return BlocBuilder <SignInBloc , SignInState >(
2728 builder: (context, state) {
29+ final theme = AppFlowyTheme .of (context);
2830 return Scaffold (
2931 resizeToAvoidBottomInset: false ,
3032 body: Padding (
3133 padding: const EdgeInsets .symmetric (vertical: 38 , horizontal: 40 ),
3234 child: Column (
3335 children: [
34- const Spacer (flex: 4 ),
35- _buildLogo (),
36- const VSpace (spacing),
37- _buildAppNameText (colorScheme),
38- const VSpace (spacing * 2 ),
36+ const Spacer (),
37+ FlowyLogoTitle (title: LocaleKeys .welcomeText.tr ()),
38+ VSpace (theme.spacing.xxl),
3939 isLocalAuthEnabled
4040 ? const SignInAnonymousButtonV3 ()
4141 : const ContinueWithEmailAndPassword (),
42- const VSpace (spacing),
43- if (isAuthEnabled) _buildThirdPartySignInButtons (context),
44- const VSpace (spacing * 1.5 ),
42+ VSpace (theme.spacing.xxl),
43+ if (isAuthEnabled) ...[
44+ _buildThirdPartySignInButtons (context),
45+ VSpace (theme.spacing.xxl),
46+ ],
4547 const SignInAgreement (),
46- const VSpace (spacing),
47- if (! isAuthEnabled) const Spacer (flex: 2 ),
48- const Spacer (flex: 2 ),
4948 const Spacer (),
50- Expanded (child: _buildSettingsButton (context)),
51- if (Platform .isAndroid) const Spacer (),
49+ _buildSettingsButton (context),
5250 ],
5351 ),
5452 ),
@@ -57,24 +55,6 @@ class MobileSignInScreen extends StatelessWidget {
5755 );
5856 }
5957
60- Widget _buildLogo () {
61- return const FlowySvg (
62- FlowySvgs .flowy_logo_xl,
63- size: Size .square (56 ),
64- blendMode: null ,
65- );
66- }
67-
68- Widget _buildAppNameText (ColorScheme colorScheme) {
69- return FlowyText (
70- LocaleKeys .appName.tr (),
71- textAlign: TextAlign .center,
72- fontSize: 28 ,
73- color: const Color (0xFF00BCF0 ),
74- fontWeight: FontWeight .w700,
75- );
76- }
77-
7858 Widget _buildThirdPartySignInButtons (BuildContext context) {
7959 final theme = AppFlowyTheme .of (context);
8060 return Column (
0 commit comments