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>(
|
return BlocBuilder<RapidOrderBloc, RapidOrderState>(
|
||||||
builder: (BuildContext context, RapidOrderState state) {
|
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) {
|
if (state is RapidOrderSuccess) {
|
||||||
return RapidOrderSuccessView(
|
return RapidOrderSuccessView(
|
||||||
title: labels.success_title,
|
title: labels.success_title,
|
||||||
|
|||||||
@@ -24,20 +24,20 @@ class ActionsWidget extends StatelessWidget {
|
|||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: _ActionCard(
|
// child: _ActionCard(
|
||||||
title: i18n.rapid,
|
// title: i18n.rapid,
|
||||||
subtitle: i18n.rapid_subtitle,
|
// subtitle: i18n.rapid_subtitle,
|
||||||
icon: UiIcons.zap,
|
// icon: UiIcons.zap,
|
||||||
color: const Color(0xFFFEF2F2),
|
// color: const Color(0xFFFEF2F2),
|
||||||
borderColor: const Color(0xFFFECACA),
|
// borderColor: const Color(0xFFFECACA),
|
||||||
iconBgColor: const Color(0xFFFEE2E2),
|
// iconBgColor: const Color(0xFFFEE2E2),
|
||||||
iconColor: const Color(0xFFDC2626),
|
// iconColor: const Color(0xFFDC2626),
|
||||||
textColor: const Color(0xFF7F1D1D),
|
// textColor: const Color(0xFF7F1D1D),
|
||||||
subtitleColor: const Color(0xFFB91C1C),
|
// subtitleColor: const Color(0xFFB91C1C),
|
||||||
onTap: onRapidPressed,
|
// onTap: onRapidPressed,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
const SizedBox(width: UiConstants.space2),
|
const SizedBox(width: UiConstants.space2),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _ActionCard(
|
child: _ActionCard(
|
||||||
|
|||||||
@@ -16,8 +16,14 @@ class GetStartedPage extends StatelessWidget {
|
|||||||
const GetStartedPage({super.key});
|
const GetStartedPage({super.key});
|
||||||
|
|
||||||
/// On sign up pressed callback.
|
/// On sign up pressed callback.
|
||||||
void onSignUpPressed() {
|
void onSignUpPressed(BuildContext context) {
|
||||||
Modular.to.pushPhoneVerification(AuthMode.signup);
|
/// 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.
|
/// On login pressed callback.
|
||||||
@@ -48,7 +54,7 @@ class GetStartedPage extends StatelessWidget {
|
|||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
GetStartedActions(
|
GetStartedActions(
|
||||||
onSignUpPressed: onSignUpPressed,
|
onSignUpPressed: () => onSignUpPressed(context),
|
||||||
onLoginPressed: onLoginPressed,
|
onLoginPressed: onLoginPressed,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ class StaffHomeModule extends Module {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void routes(RouteManager r) {
|
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
|
@override
|
||||||
void routes(RouteManager r) {
|
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