Skip to content

Commit

Permalink
update pubspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-deriv committed May 15, 2024
1 parent cbadf37 commit 445a46e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:deriv_auth/deriv_auth.dart';
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:flutter/material.dart';

final class ExampleAuthErrorStateHandler extends AuthErrorStateHandler {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'package:deriv_auth_ui/deriv_auth_ui.dart';

import 'package:deriv_auth/features/get_started/models/deriv_get_started_slide_model.dart';
import 'package:deriv_auth/features/get_started/presentation/layouts/deriv_get_started_layout.dart';
import 'package:example/features/login/pages/login_page.dart';
import 'package:example/features/signup/pages/signup_page.dart';
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:deriv_auth/features/auth/cubit/deriv_auth_cubit.dart';
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:deriv_auth/features/login/presentation/layouts/deriv_login_layout.dart';
import 'package:example/core/example_auth_error_state_handler.dart';
import 'package:example/features/home/pages/home_page.dart';
import 'package:example/features/reset_pass/pages/reset_pass_page.dart';
Expand Down Expand Up @@ -27,7 +27,7 @@ class _LoginPageState extends State<LoginPage> {
welcomeLabel: 'Welcome back!',
greetingLabel:
'Log in to your Deriv account to start trading and investing.',
onLoggedIn: (_) => Navigator.pushReplacement(
onLoggedIn: (_, __) => Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) => const HomePage(),
Expand All @@ -48,6 +48,9 @@ class _LoginPageState extends State<LoginPage> {
),
),
onSocialAuthButtonPressed: (_) {},
socialAuthStateHandler: (SocialAuthState) {},
redirectURL: '',
onWebViewError: (String) {},
);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:deriv_auth/features/reset_password/cubit/reset_password_cubit.dart';
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:deriv_auth/features/reset_password/presentation/layouts/deriv_choose_new_pass_layout.dart';
import 'package:example/features/reset_pass/pages/reset_pass_success_page.dart';
import 'package:flutter/material.dart';

Expand All @@ -19,7 +19,7 @@ class ChooseNewPasswordPage extends StatelessWidget {
),
);
},
onResetPassError: (_) {},
onResetPassError: ({String? error, required bool isLinkExpired}) {},
);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:deriv_auth/deriv_auth.dart';
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:example/features/get_started/pages/get_started_page.dart';
import 'package:example/features/login/pages/login_page.dart';
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:deriv_auth/deriv_auth.dart';
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:example/core/example_auth_error_state_handler.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:deriv_auth_ui/deriv_auth_ui.dart';
import 'package:deriv_auth/features/signup/presentation/layouts/deriv_signup_layout.dart';
import 'package:example/core/example_auth_error_state_handler.dart';
import 'package:example/features/login/pages/login_page.dart';
import 'package:example/features/signup/pages/verify_email_page.dart';
Expand Down Expand Up @@ -35,5 +35,8 @@ class _SignupPageState extends State<SignupPage> {
builder: (context) => const LoginPage(),
),
),
socialAuthStateHandler: (SocialAuthState) {},
redirectURL: '',
onWebViewError: (String) {},
);
}
9 changes: 7 additions & 2 deletions packages/deriv_auth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
deriv_auth_ui:
path: ../
deriv_auth:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_auth
ref: deriv_auth-v6.4.0

flutter_bloc: ^8.1.3
http: ^0.13.6
device_preview: ^1.1.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 445a46e

Please sign in to comment.