-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support sign-in and sign-up on Web (#5712)
- Loading branch information
Showing
49 changed files
with
934 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...flowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/sign_in_agreement.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import 'package:appflowy/core/helpers/url_launcher.dart'; | ||
import 'package:appflowy/generated/locale_keys.g.dart'; | ||
import 'package:easy_localization/easy_localization.dart'; | ||
import 'package:flutter/gestures.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class SignInAgreement extends StatelessWidget { | ||
const SignInAgreement({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return RichText( | ||
textAlign: TextAlign.center, | ||
text: TextSpan( | ||
children: [ | ||
TextSpan( | ||
text: '${LocaleKeys.web_signInAgreement.tr()} ', | ||
style: const TextStyle(color: Colors.grey, fontSize: 12), | ||
), | ||
TextSpan( | ||
text: '${LocaleKeys.web_termOfUse.tr()} ', | ||
style: const TextStyle(color: Colors.blue, fontSize: 12), | ||
mouseCursor: SystemMouseCursors.click, | ||
recognizer: TapGestureRecognizer() | ||
..onTap = () => afLaunchUrlString('https://appflowy.io/terms'), | ||
), | ||
TextSpan( | ||
text: '${LocaleKeys.web_and.tr()} ', | ||
style: const TextStyle(color: Colors.grey, fontSize: 12), | ||
), | ||
TextSpan( | ||
text: LocaleKeys.web_privacyPolicy.tr(), | ||
style: const TextStyle(color: Colors.blue, fontSize: 12), | ||
mouseCursor: SystemMouseCursors.click, | ||
recognizer: TapGestureRecognizer() | ||
..onTap = () => afLaunchUrlString('https://appflowy.io/privacy'), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/widgets.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export 'magic_link_sign_in_buttons.dart'; | ||
export 'sign_in_anonymous_button.dart'; | ||
export 'sign_in_or_logout_button.dart'; | ||
export 'switch_sign_in_sign_up_button.dart'; | ||
|
||
// export 'switch_sign_in_sign_up_button.dart'; | ||
export 'third_party_sign_in_buttons.dart'; | ||
export 'sign_in_agreement.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.