feat: Add placeholder for unimplemented features in Get Started, Home, and Profile modules
feat: Add placeholder for Rapid Order success view and comment out Rapid action card
This commit is contained in:
@@ -23,6 +23,19 @@ class RapidOrderView extends StatelessWidget {
|
||||
|
||||
return BlocBuilder<RapidOrderBloc, RapidOrderState>(
|
||||
builder: (BuildContext context, RapidOrderState state) {
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
return Scaffold(
|
||||
appBar: UiAppBar(
|
||||
title: labels.title,
|
||||
showBackButton: true,
|
||||
onLeadingPressed: () => Modular.to.pop(),
|
||||
),
|
||||
body: const SizedBox(
|
||||
child: Center(
|
||||
child: Text('Rapid Order Success View Not Yet Implemented'),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (state is RapidOrderSuccess) {
|
||||
return RapidOrderSuccessView(
|
||||
title: labels.success_title,
|
||||
|
||||
@@ -24,20 +24,20 @@ class ActionsWidget extends StatelessWidget {
|
||||
|
||||
return Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: _ActionCard(
|
||||
title: i18n.rapid,
|
||||
subtitle: i18n.rapid_subtitle,
|
||||
icon: UiIcons.zap,
|
||||
color: const Color(0xFFFEF2F2),
|
||||
borderColor: const Color(0xFFFECACA),
|
||||
iconBgColor: const Color(0xFFFEE2E2),
|
||||
iconColor: const Color(0xFFDC2626),
|
||||
textColor: const Color(0xFF7F1D1D),
|
||||
subtitleColor: const Color(0xFFB91C1C),
|
||||
onTap: onRapidPressed,
|
||||
),
|
||||
),
|
||||
// Expanded(
|
||||
// child: _ActionCard(
|
||||
// title: i18n.rapid,
|
||||
// subtitle: i18n.rapid_subtitle,
|
||||
// icon: UiIcons.zap,
|
||||
// color: const Color(0xFFFEF2F2),
|
||||
// borderColor: const Color(0xFFFECACA),
|
||||
// iconBgColor: const Color(0xFFFEE2E2),
|
||||
// iconColor: const Color(0xFFDC2626),
|
||||
// textColor: const Color(0xFF7F1D1D),
|
||||
// subtitleColor: const Color(0xFFB91C1C),
|
||||
// onTap: onRapidPressed,
|
||||
// ),
|
||||
// ),
|
||||
const SizedBox(width: UiConstants.space2),
|
||||
Expanded(
|
||||
child: _ActionCard(
|
||||
|
||||
@@ -16,8 +16,14 @@ class GetStartedPage extends StatelessWidget {
|
||||
const GetStartedPage({super.key});
|
||||
|
||||
/// On sign up pressed callback.
|
||||
void onSignUpPressed() {
|
||||
Modular.to.pushPhoneVerification(AuthMode.signup);
|
||||
void onSignUpPressed(BuildContext context) {
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
/// Replace with actual sign up flow when implemented
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('Sign Up feature not yet implemented.'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// On login pressed callback.
|
||||
@@ -48,7 +54,7 @@ class GetStartedPage extends StatelessWidget {
|
||||
|
||||
// Actions
|
||||
GetStartedActions(
|
||||
onSignUpPressed: onSignUpPressed,
|
||||
onSignUpPressed: () => onSignUpPressed(context),
|
||||
onLoginPressed: onLoginPressed,
|
||||
),
|
||||
|
||||
|
||||
@@ -28,6 +28,11 @@ class StaffHomeModule extends Module {
|
||||
|
||||
@override
|
||||
void routes(RouteManager r) {
|
||||
r.child('/', child: (BuildContext context) => const WorkerHomePage());
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
r.child('/', child: (BuildContext context) => const SizedBox(
|
||||
child: Center(
|
||||
child: Text('Home Feature Not Yet Implemented'),
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,11 @@ class StaffProfileModule extends Module {
|
||||
|
||||
@override
|
||||
void routes(RouteManager r) {
|
||||
r.child('/', child: (BuildContext context) => const StaffProfilePage());
|
||||
/// TODO: FEATURE_NOT_YET_IMPLEMENTED
|
||||
r.child('/', child: (BuildContext context) => const SizedBox(
|
||||
child: Center(
|
||||
child: Text('Profile Feature Not Yet Implemented'),
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user