Koder Lex — Mobile App
- Area: Industry Solutions (Legal)
- Path:
products/vertical/lex/app - Kind: Flutter mobile app — legal practice management
- Version: 1.0.2
- Status: Beta (real API integration; Koder ID PKCE auth)
Role in the stack
Koder Lex is the mobile front-end for law firms and solo attorneys. It provides case management, court tracking, deadline control, billing (with live timer), document management, client CRM, calendar scheduling, AI-powered legal research, contract lifecycle, compliance, and reporting — all in a single Flutter app.
The app talks to https://lex.koder.dev/api/v1 via LexApiService. Authentication uses Koder ID PKCE flow (dev.koder.lex client, registered in Koder ID). Tokens are stored in flutter_secure_storage; auto-refresh on 401.
Primary couplings
| Module | Relationship |
|---|---|
products/vertical/lex/engine |
Backend REST API (not yet built) |
services/foundation/id/platform |
Koder ID PKCE auth — dev.koder.lex client registered |
ai/gateway |
AI legal assistant chat (planned) |
ai/rag |
Case law grounding (planned) |
Screens
| Screen | Route | Feature |
|---|---|---|
| Home | /home |
Dashboard with stats, active cases, alerts |
| Cases | /cases |
Case list with search/filter, New Case sheet |
| Case Detail | push | Tabs: Overview, Movements, Deadlines, Documents |
| Clients | /clients |
Client list, Add Client dialog |
| Calendar | /calendar |
Monthly grid, event list, New Event sheet |
| Billing | /billing |
Timer (startpausestop), time entries, invoices |
| Documents | /documents |
Document list with type filter, Upload dialog |
| Deadlines | /deadlines |
Procedural deadline tracker |
| Contracts | /contracts |
Contract status management |
| Reports | /reports |
Charts with DayWeekMonth period toggle |
| AI Assistant | /ai |
Chat with legal research assistant |
| Settings | /settings |
Theme, notifications, profile (toggles only) |
Interfaces
- Entry point:
main.dart→MaterialAppwith named routes viaAppRoutes.generateRoute - Theme:
ThemeProvider(Provider) — light/dark, persisted inshared_preferences - API:
ApiService+LexApiService— HTTP client with auth token injection, wired to all 10 backend domains - Auth:
AuthService— Koder ID PKCE flow; tokens influtter_secure_storage; fallback demo login for dev