@@ -2,6 +2,7 @@ import 'package:appflowy/env/cloud_env.dart';
22import 'package:appflowy/generated/flowy_svgs.g.dart' ;
33import 'package:appflowy/generated/locale_keys.g.dart' ;
44import 'package:appflowy/user/presentation/screens/sign_in_screen/widgets/widgets.dart' ;
5+ import 'package:appflowy_editor/appflowy_editor.dart' ;
56import 'package:easy_localization/easy_localization.dart' ;
67import 'package:flowy_infra_ui/flowy_infra_ui.dart' ;
78import 'package:flutter/material.dart' ;
@@ -67,26 +68,30 @@ class MobileSignInScreen extends StatelessWidget {
6768 const Spacer (
6869 flex: 2 ,
6970 ),
70- const SignInAnonymousButton (),
71- const VSpace (spacing),
71+ if (! PlatformExtension .isMobile) ...[
72+ const SignInAnonymousButton (),
73+ const VSpace (spacing),
74+ ],
7275 if (isAuthEnabled) ...[
73- Row (
74- mainAxisAlignment: MainAxisAlignment .center,
75- children: [
76- const Expanded (child: Divider ()),
77- Padding (
78- padding: const EdgeInsets .symmetric (horizontal: 8 ),
79- child: Text (
80- LocaleKeys .signIn_or.tr (),
81- style: style.textTheme.bodyMedium? .copyWith (
82- color: style.colorScheme.onSecondary,
76+ if (! PlatformExtension .isMobile) ...[
77+ Row (
78+ mainAxisAlignment: MainAxisAlignment .center,
79+ children: [
80+ const Expanded (child: Divider ()),
81+ Padding (
82+ padding: const EdgeInsets .symmetric (horizontal: 8 ),
83+ child: Text (
84+ LocaleKeys .signIn_or.tr (),
85+ style: style.textTheme.bodyMedium? .copyWith (
86+ color: style.colorScheme.onSecondary,
87+ ),
8388 ),
8489 ),
85- ),
86- const Expanded (child : Divider ()) ,
87- ] ,
88- ),
89- const VSpace (spacing) ,
90+ const Expanded (child : Divider () ),
91+ ] ,
92+ ) ,
93+ const VSpace (spacing ),
94+ ] ,
9095 const ThirdPartySignInButtons (),
9196 ],
9297 if (! isAuthEnabled)
0 commit comments