feat(authentication): remove social sign-in buttons and add TODO for future implementation
feat(billing): update billing module routes to indicate feature not yet implemented feat(coverage): update coverage module routes to indicate feature not yet implemented feat(sign_up_form): set full width for create account button in sign-up form
This commit is contained in:
@@ -33,13 +33,6 @@ class ClientSignInPage extends StatelessWidget {
|
|||||||
).add(ClientSignInRequested(email: email, password: password));
|
).add(ClientSignInRequested(email: email, password: password));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dispatches the social sign in event to the BLoC.
|
|
||||||
void _handleSocialSignIn(BuildContext context, {required String provider}) {
|
|
||||||
BlocProvider.of<ClientAuthBloc>(
|
|
||||||
context,
|
|
||||||
).add(ClientSocialSignInRequested(provider: provider));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final i18n = t.client_authentication.sign_in_page;
|
final i18n = t.client_authentication.sign_in_page;
|
||||||
@@ -97,21 +90,9 @@ class ClientSignInPage extends StatelessWidget {
|
|||||||
AuthDivider(text: i18n.or_divider),
|
AuthDivider(text: i18n.or_divider),
|
||||||
|
|
||||||
const SizedBox(height: UiConstants.space6),
|
const SizedBox(height: UiConstants.space6),
|
||||||
|
|
||||||
// Social Buttons
|
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||||
AuthSocialButton(
|
// Social Sign-In Buttons
|
||||||
text: i18n.social_apple,
|
|
||||||
icon: UiIcons.apple,
|
|
||||||
onPressed: () =>
|
|
||||||
_handleSocialSignIn(context, provider: 'apple'),
|
|
||||||
),
|
|
||||||
const SizedBox(height: UiConstants.space3),
|
|
||||||
AuthSocialButton(
|
|
||||||
text: i18n.social_google,
|
|
||||||
icon: UiIcons.google,
|
|
||||||
onPressed: () =>
|
|
||||||
_handleSocialSignIn(context, provider: 'google'),
|
|
||||||
),
|
|
||||||
|
|
||||||
const SizedBox(height: UiConstants.space8),
|
const SizedBox(height: UiConstants.space8),
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,6 @@ class ClientSignUpPage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dispatches the social sign up event.
|
|
||||||
void _handleSocialSignUp(BuildContext context, {required String provider}) {
|
|
||||||
BlocProvider.of<ClientAuthBloc>(
|
|
||||||
context,
|
|
||||||
).add(ClientSocialSignInRequested(provider: provider));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final i18n = t.client_authentication.sign_up_page;
|
final i18n = t.client_authentication.sign_up_page;
|
||||||
@@ -102,27 +95,13 @@ class ClientSignUpPage extends StatelessWidget {
|
|||||||
|
|
||||||
const SizedBox(height: UiConstants.space6),
|
const SizedBox(height: UiConstants.space6),
|
||||||
|
|
||||||
// Divider
|
|
||||||
// Divider
|
// Divider
|
||||||
AuthDivider(text: i18n.or_divider),
|
AuthDivider(text: i18n.or_divider),
|
||||||
|
|
||||||
const SizedBox(height: UiConstants.space6),
|
const SizedBox(height: UiConstants.space6),
|
||||||
|
|
||||||
// Social Buttons
|
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||||
// Social Buttons
|
// Social Sign-In Buttons in register page
|
||||||
AuthSocialButton(
|
|
||||||
text: i18n.social_apple,
|
|
||||||
icon: UiIcons.apple,
|
|
||||||
onPressed: () =>
|
|
||||||
_handleSocialSignUp(context, provider: 'apple'),
|
|
||||||
),
|
|
||||||
const SizedBox(height: UiConstants.space3),
|
|
||||||
AuthSocialButton(
|
|
||||||
text: i18n.social_google,
|
|
||||||
icon: UiIcons.google,
|
|
||||||
onPressed: () =>
|
|
||||||
_handleSocialSignUp(context, provider: 'google'),
|
|
||||||
),
|
|
||||||
|
|
||||||
const SizedBox(height: UiConstants.space8),
|
const SizedBox(height: UiConstants.space8),
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ class _ClientSignUpFormState extends State<ClientSignUpForm> {
|
|||||||
UiButton.primary(
|
UiButton.primary(
|
||||||
text: widget.isLoading ? null : i18n.create_account_button,
|
text: widget.isLoading ? null : i18n.create_account_button,
|
||||||
onPressed: widget.isLoading ? null : _handleSubmit,
|
onPressed: widget.isLoading ? null : _handleSubmit,
|
||||||
|
fullWidth: true,
|
||||||
child: widget.isLoading
|
child: widget.isLoading
|
||||||
? const SizedBox(
|
? const SizedBox(
|
||||||
height: 24,
|
height: 24,
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'package:krow_data_connect/krow_data_connect.dart';
|
import 'package:krow_data_connect/krow_data_connect.dart';
|
||||||
|
|
||||||
import 'data/repositories_impl/billing_repository_impl.dart';
|
import 'data/repositories_impl/billing_repository_impl.dart';
|
||||||
import 'domain/repositories/billing_repository.dart';
|
import 'domain/repositories/billing_repository.dart';
|
||||||
import 'domain/usecases/get_current_bill_amount.dart';
|
import 'domain/usecases/get_current_bill_amount.dart';
|
||||||
@@ -8,7 +10,6 @@ import 'domain/usecases/get_pending_invoices.dart';
|
|||||||
import 'domain/usecases/get_savings_amount.dart';
|
import 'domain/usecases/get_savings_amount.dart';
|
||||||
import 'domain/usecases/get_spending_breakdown.dart';
|
import 'domain/usecases/get_spending_breakdown.dart';
|
||||||
import 'presentation/blocs/billing_bloc.dart';
|
import 'presentation/blocs/billing_bloc.dart';
|
||||||
import 'presentation/pages/billing_page.dart';
|
|
||||||
|
|
||||||
/// Modular module for the billing feature.
|
/// Modular module for the billing feature.
|
||||||
class BillingModule extends Module {
|
class BillingModule extends Module {
|
||||||
@@ -46,6 +47,10 @@ class BillingModule extends Module {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void routes(RouteManager r) {
|
void routes(RouteManager r) {
|
||||||
r.child('/', child: (_) => const BillingPage());
|
r.child("/", child: (_) => const SizedBox(
|
||||||
|
child: Center(child: Text('Feature not yet implemented')),
|
||||||
|
));
|
||||||
|
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||||
|
// r.child('/', child: (_) => const BillingPage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'data/repositories_impl/coverage_repository_impl.dart';
|
import 'data/repositories_impl/coverage_repository_impl.dart';
|
||||||
import 'domain/repositories/coverage_repository.dart';
|
import 'domain/repositories/coverage_repository.dart';
|
||||||
import 'domain/usecases/get_coverage_stats_usecase.dart';
|
import 'domain/usecases/get_coverage_stats_usecase.dart';
|
||||||
import 'domain/usecases/get_shifts_for_date_usecase.dart';
|
import 'domain/usecases/get_shifts_for_date_usecase.dart';
|
||||||
import 'presentation/blocs/coverage_bloc.dart';
|
import 'presentation/blocs/coverage_bloc.dart';
|
||||||
import 'presentation/pages/coverage_page.dart';
|
|
||||||
|
|
||||||
/// Modular module for the coverage feature.
|
/// Modular module for the coverage feature.
|
||||||
class CoverageModule extends Module {
|
class CoverageModule extends Module {
|
||||||
@@ -28,6 +28,10 @@ class CoverageModule extends Module {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void routes(RouteManager r) {
|
void routes(RouteManager r) {
|
||||||
r.child('/', child: (_) => const CoveragePage());
|
r.child("/", child: (_) => const SizedBox(
|
||||||
|
child: Center(child: Text('Feature not yet implemented')),
|
||||||
|
));
|
||||||
|
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||||
|
// r.child('/', child: (_) => const CoveragePage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user