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:
Achintha Isuru
2026-01-23 17:24:30 -05:00
parent 15ff467294
commit 387e47865c
5 changed files with 19 additions and 49 deletions

View File

@@ -33,13 +33,6 @@ class ClientSignInPage extends StatelessWidget {
).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
Widget build(BuildContext context) {
final i18n = t.client_authentication.sign_in_page;
@@ -97,21 +90,9 @@ class ClientSignInPage extends StatelessWidget {
AuthDivider(text: i18n.or_divider),
const SizedBox(height: UiConstants.space6),
// Social Buttons
AuthSocialButton(
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'),
),
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
// Social Sign-In Buttons
const SizedBox(height: UiConstants.space8),

View File

@@ -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
Widget build(BuildContext context) {
final i18n = t.client_authentication.sign_up_page;
@@ -102,27 +95,13 @@ class ClientSignUpPage extends StatelessWidget {
const SizedBox(height: UiConstants.space6),
// Divider
// Divider
AuthDivider(text: i18n.or_divider),
const SizedBox(height: UiConstants.space6),
// Social Buttons
// Social Buttons
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'),
),
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
// Social Sign-In Buttons in register page
const SizedBox(height: UiConstants.space8),

View File

@@ -120,6 +120,7 @@ class _ClientSignUpFormState extends State<ClientSignUpForm> {
UiButton.primary(
text: widget.isLoading ? null : i18n.create_account_button,
onPressed: widget.isLoading ? null : _handleSubmit,
fullWidth: true,
child: widget.isLoading
? const SizedBox(
height: 24,

View File

@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:krow_data_connect/krow_data_connect.dart';
import 'data/repositories_impl/billing_repository_impl.dart';
import 'domain/repositories/billing_repository.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_spending_breakdown.dart';
import 'presentation/blocs/billing_bloc.dart';
import 'presentation/pages/billing_page.dart';
/// Modular module for the billing feature.
class BillingModule extends Module {
@@ -46,6 +47,10 @@ class BillingModule extends Module {
@override
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());
}
}

View File

@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'data/repositories_impl/coverage_repository_impl.dart';
import 'domain/repositories/coverage_repository.dart';
import 'domain/usecases/get_coverage_stats_usecase.dart';
import 'domain/usecases/get_shifts_for_date_usecase.dart';
import 'presentation/blocs/coverage_bloc.dart';
import 'presentation/pages/coverage_page.dart';
/// Modular module for the coverage feature.
class CoverageModule extends Module {
@@ -28,6 +28,10 @@ class CoverageModule extends Module {
@override
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());
}
}