Inspiration

Students often struggle to access U.S. legal information in a simple, organized way. Existing apps are cluttered, online-only, or incomplete. I wanted a fast, offline tool that makes learning U.S. laws and DMV rules easy for everyone.

What it does

US Law Reference provides an offline, searchable library of the U.S. Code, the Constitution, and DMV practice tests. Users can browse titles, read full legal sections, study amendments, take quizzes, and track their progress—all in one app.

How we built it

I built the app using Flutter and Dart, with a local SQLite database for storing law sections, constitutional text, quiz history, and DMV questions. The UI uses Material Design 3 and follows a clean MVVM structure. All legal content is embedded for offline access.

Challenges we ran into

Extracting and formatting real U.S. legal text into a structured database Managing large datasets efficiently on-device Fixing quiz randomization bugs and answer duplication Designing a clean UI that still handles long legal sections Ensuring good performance without requiring internet access

Accomplishments that we're proud of

Fully offline access to 38 U.S. Code titles and the entire Constitution A clean, intuitive UI that makes dense legal text easier to read A complete DMV practice test system with progress tracking Smooth search functionality across all legal sections Successfully publishing a working APK usable on real Android devices

What we learned

How to structure and optimize large SQLite datasets in Flutter How to manage state and navigation in a growing mobile app How to extract, clean, and format public legal data The importance of UI/UX when displaying long-form text How to design quizzes, timers, and statistics tracking systems

What's next for US Law Reference

Expanding to all 54 U.S. Code titles Adding case law summaries and examples for easier learning Adding bookmarks, favorites, and note-taking Improving search with filters and keyword highlighting Bringing the app to iOS Publishing to Google Play for easy installation

Built With

Share this project:

Updates

posted an update

Use of AI Tools

Throughout the development of US Law Reference, I relied heavily on modern AI-assisted tools to improve efficiency, code quality, and problem-solving:

GitHub Copilot

GitHub Copilot helped accelerate development by generating boilerplate Flutter code, suggesting widget structures, improving UI layouts, and assisting with repetitive tasks like model creation, database helpers, and navigation logic. It allowed me to focus more on architecture and design while reducing time spent on manual coding.

Claude 4.5

Claude 4.5 was used for refining complex logic, debugging issues, and generating clear explanations for legal formatting challenges. It also helped with data cleaning and structuring large sections of U.S. Code text before importing them into SQLite.

ChatGPT

ChatGPT assisted across the entire project—from designing app structure, writing documentation, crafting user-friendly UI wording, and solving Flutter-specific problems, to clarifying U.S. law formatting and helping with quiz logic. It also helped generate and refine the README, pitch, and project descriptions.

Log in or sign up for Devpost to join the conversation.