Skip to content

Commit

Permalink
add sign in with apple and delete account
Browse files Browse the repository at this point in the history
  • Loading branch information
aidaiym committed Oct 1, 2024
1 parent 55b23ac commit 85e789c
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 81 deletions.
6 changes: 2 additions & 4 deletions app/lib/app/data/models/token_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/app/data/models/user_data_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/app/data/models/user_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/hatim/data/model/hatim_base_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions app/lib/modules/hatim/data/model/hatim_page.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/hatim/data/model/hatim_read_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/home/data/model/home_model_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions app/lib/modules/login/presentation/view/sign_in_view.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:developer';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
Expand Down Expand Up @@ -153,20 +154,21 @@ class _SignInViewState extends State<SignInView> {
),
),
const SizedBox(height: 16),
SignInWithAppleButton(
key: Key(MqKeys.loginTypeName('apple')),
text: 'Apple',
height: 50,
onPressed: () async {
MqAnalytic.track(
AnalyticKey.tapLogin,
params: {'soccial': 'apple'},
);
unawaited(AppAlert.showLoading(context));
await context.read<AuthCubit>().signInWithApple();
if (context.mounted) context.loaderOverlay.hide();
},
),
if (Platform.isIOS)
SignInWithAppleButton(
key: Key(MqKeys.loginTypeName('apple')),
text: 'Apple',
height: 50,
onPressed: () async {
MqAnalytic.track(
AnalyticKey.tapLogin,
params: {'soccial': 'apple'},
);
unawaited(AppAlert.showLoading(context));
await context.read<AuthCubit>().signInWithApple();
if (context.mounted) context.loaderOverlay.hide();
},
),
const SizedBox(height: 40),
TextButton(
onPressed: () {
Expand Down
12 changes: 4 additions & 8 deletions app/lib/modules/quran/data/model/juz_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions app/lib/modules/quran/data/model/juz_surah_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions app/lib/modules/quran/data/model/surah_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/read/data/model/filters_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/read/data/model/meta_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions app/lib/modules/read/data/model/quran_page_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/lib/modules/read/data/model/verse_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85e789c

Please sign in to comment.