feature/food — Food Ordering

Implement Flutter food ordering with Hive-persisted cart and realtime tracking.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Vantoan252003/Mozi --skill feature-food-food-ordering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature/food — Food Ordering
Source: https://github.com/Vantoan252003/Mozi/tree/main/lib/features/food
Command: npx skills add https://github.com/Vantoan252003/Mozi --skill feature-food-food-ordering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building a robust food ordering experience requires coordinating listings, complex menu option selection, a global cart with persistence, checkout flows, real-time order tracking, and order lifecycle management; this Skill consolidates architecture and implementation guidance so teams can implement that feature consistently and reliably.

Core Features & Use Cases

  • Global Cart & Persistence: Singleton CartCubit provided at app root with Hive-backed persistence to survive restarts and handle restaurant conflicts.
  • Domain-Driven Use Cases: Clear use cases for listing restaurants, retrieving menus, placing orders, cancelling, reordering, and fetching order history.
  • Presentation & Real-time Flow: Cubits/BLoCs and pages for restaurant lists, menu grouping, cart, checkout, and food tracking with shipper location updates.
  • Developer Guidance: Models, data sources (remote/local), repository implementations, and widget/cubit scaffolding are specified for deterministic implementation and testing.

Quick Start

Implement the Food feature by following the SKILL.md guidance to scaffold entities, use cases, data sources, a singleton CartCubit with Hive persistence, presentation cubits/blocs and pages, then run the Flutter app to verify the end-to-end ordering and tracking flow.

Frequently Asked Questions about feature/food — Food Ordering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement persistent cart management in Flutter with Hive?

You build a persistent food ordering cart by providing a singleton CartCubit at the app root with Hive. This setup saves cart state locally to survive app restarts and automatically handles restaurant conflicts during checkout.

What is the best way to structure a Flutter food ordering app using BLoC and Cubit?

The best way to structure a Flutter food ordering app uses domain-driven design with separate use cases, remote and local data sources, repository implementations, and presentation cubits/blocs for deterministic testing and clean state management.

How do I add real-time shipper tracking to a Flutter delivery app?

Real-time shipper tracking in a Flutter delivery app is implemented using presentation cubits and pages that handle order state transitions from pending to delivered while updating shipper location data continuously.

Does this Flutter food ordering approach support voucher handling and lazy menu loading?

Yes, this Flutter food ordering approach supports voucher handling and lazy menu loading. It specifies domain use cases and presentation cubits to manage menu option groups and apply vouchers during the checkout flow.

Can I use this architecture to handle order history and reordering for a delivery app?

Yes, you can use this architecture to handle order history and reordering. It includes specific domain use cases for fetching past orders, cancelling orders, and reordering items within the Flutter delivery app workflow.