-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign in ui is done #117
Sign in ui is done #117
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ analyzer: | |
- "**/*.g.dart" | ||
- "**/*.freezed.dart" | ||
- "bin/cache/**" | ||
|
||
errors: | ||
todo: false | ||
fixme: false | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,7 @@ class ApiConst { | |
static Map<String, String> authMap(String token) => {'Authorization': 'Bearer $token'}; | ||
|
||
static const urlGitHub = 'https://github.com/Eldar2021/my_quran'; | ||
|
||
// TODO(eldiiar): Replace the privacy policy URL with the actual [URL] of your privacy policy page. | ||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice TODO 👍 |
||
static const provicyPolicy = 'https://github.com/Eldar2021/my_quran'; | ||
Joldubaev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export 'logic/login_cubit.dart'; | ||
export 'view/login_view.dart'; | ||
export 'view/sign_in_view.dart'; | ||
export 'widget/widgets.dart'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,10 @@ class LoginView extends StatelessWidget { | |
), | ||
), | ||
), | ||
// You can enable it to see the SignIn page | ||
// floatingActionButton: FloatingActionButton( | ||
// onPressed: () => Navigator.pushNamed(context, AppRouter.signIn), | ||
// ), | ||
Comment on lines
+27
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tam istediğim gibi teşekkürler :) |
||
); | ||
} | ||
} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bu dosyayı henüz test etmedim, ama temiz ve iyi görünüyor. O yüzden onaylıyorum. Elinize sağlık abi. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | ||
|
||
import 'package:my_quran/components/components.dart'; | ||
import 'package:my_quran/constants/contants.dart'; | ||
import 'package:my_quran/core/core.dart'; | ||
import 'package:my_quran/l10n/l10.dart'; | ||
import 'package:my_quran/theme/theme.dart'; | ||
|
||
class SignInView extends StatelessWidget { | ||
const SignInView({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const SizedBox(height: 10), | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 25, vertical: 20), | ||
child: Assets.images.splash.image(), | ||
), | ||
const SizedBox(height: 12), | ||
Text(context.l10n.welcome, style: context.titleLarge!.copyWith(color: context.colors.primary, fontSize: 50)), | ||
const SizedBox(height: 30), | ||
CustomButtonWithIcon( | ||
icon: const Icon(FontAwesomeIcons.google), | ||
onPressed: () {}, | ||
text: context.l10n.google, | ||
), | ||
const SizedBox(height: 30), | ||
Text( | ||
context.l10n.orSignInWith, | ||
textAlign: TextAlign.center, | ||
style: context.bodyLarge!.copyWith(color: context.colors.shadow, fontSize: 17), | ||
), | ||
const SizedBox(height: 33), | ||
CustomButtonWithIcon( | ||
icon: const Icon(FontAwesomeIcons.apple), | ||
onPressed: () {}, | ||
text: context.l10n.apple, | ||
), | ||
const SizedBox(height: 90), | ||
CustomButton(onPressed: () {}, text: context.l10n.signInWithoutAnAccount), | ||
const Spacer(), | ||
TextButton( | ||
onPressed: () => AppLaunch.launchURL(ApiConst.provicyPolicy), | ||
child: Text( | ||
context.l10n.privacyPolicy, | ||
style: context.bodyLarge!.copyWith( | ||
color: context.colors.primary, | ||
decoration: TextDecoration.underline, | ||
), | ||
), | ||
), | ||
const SizedBox(height: 20), | ||
], | ||
), | ||
); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! 🤙