A comprehensive mobile application for browsing US Code sections, the Constitution, and practicing DMV knowledge tests. Built with Flutter for Android devices.
Download the latest APK:
- USLawReference_Final.apk (47.8MB)
- Download the APK file to your Android device
- Enable "Install from Unknown Sources" in your device settings:
- Go to Settings β Security β Enable Unknown Sources
- Or on newer Android versions: Settings β Apps β Special Access β Install Unknown Apps β Select your browser/file manager β Allow
- Open the downloaded APK file
- Tap Install and wait for installation to complete
- Open the app and start exploring US laws!
- 38 Titles with real legal content from the United States Code
- Covers essential topics including:
- General Provisions, Congress, The President
- Criminal Law, Civil Rights, Immigration
- Tax Code, Patents, Copyrights
- Labor Law, Education, Veterans Benefits
- And many more!
- Beautiful card-based interface with detailed section views
- Search functionality to quickly find specific laws
- Copy and share legal text
- Professional citation formatting
- Complete text of the Constitution
- Bill of Rights and all Amendments
- Easy-to-read formatting with historical context
- 50+ practice questions across 5 categories:
- Traffic Signs
- Road Rules
- Safety Regulations
- Parking Rules
- Traffic Signals
- "All Categories (Mixed)" mode for comprehensive practice
- 10 questions per quiz
- Timer tracking
- Detailed explanations for each answer
- Quiz history with performance statistics
- Track your progress over time
- Modern Material Design 3 with gradient themes
- Card-based navigation for intuitive browsing
- Dark/Light mode compatible
- Smooth animations and transitions
- Responsive layout for all screen sizes
- Flutter ^3.10.0
- Dart for business logic
- SQLite (sqflite ^2.3.0) for local data storage
- Material Design 3 for UI components
- Efficient local SQLite database
- Three main tables:
law_sections- US Code and Constitutional contentdmv_questions- Practice test questionsquiz_results- User quiz history and scores
- Clean MVVM pattern
- Separation of concerns (data, models, pages, services)
- Stateful widgets for interactive components
- Database helper for data management
- 80+ Law Sections from US Code
- 13 Constitutional Sections (Preamble + Bill of Rights)
- 50+ DMV Questions with explanations
- 38 US Code Titles with actual legal text
- All content included offline - no internet required!
- Full legal text with proper formatting
- Section metadata (title, chapter, section numbers)
- Historical notes and context
- Citation generator
- Copy to clipboard functionality
- Share functionality
- Randomized questions (Mixed mode only)
- Pre-shuffled answers to prevent display bugs
- Real-time scoring
- Performance tracking
- Quiz duration tracking
- Detailed explanations after each question
- Fast search across all law sections
- Filter by title, chapter, or keywords
- Table of Contents for easy navigation
- Expandable section cards
This project is for educational purposes. Legal content is sourced from publicly available US government documents.
Created by Andrew Tr
- GitHub: @AndrewTr0612
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- β 38 US Code titles with real content
- β Complete Constitution and Bill of Rights
- β 50+ DMV practice questions
- β Quiz history and statistics
- β Modern card-based UI
- β Search and browse functionality
- β Offline access to all content
- β Fixed quiz randomization bugs
- β Limited quizzes to 10 questions each
US Law Reference is a comprehensive mobile application designed to make US legal information accessible to everyone. Built with Flutter for Android devices, this app serves as a portable legal reference guide that combines the United States Code, the Constitution, and practical DMV test preparation in one convenient package.
The motivation behind this project stems from the need to democratize access to legal information. Legal texts are often difficult to navigate, scattered across multiple government websites, and not optimized for mobile viewing. This app solves these problems by providing offline access to carefully curated legal content in a modern, user-friendly interface.
Key accomplishments include implementing a robust SQLite database containing 80+ law sections across 38 US Code titles, creating an interactive quiz system with 50+ DMV practice questions, and designing an intuitive card-based navigation system. The app features advanced functionality such as real-time search, citation generation, quiz performance tracking, and the ability to copy and share legal text.
The technical implementation demonstrates proficiency in mobile app development, database management, state management in Flutter, and creating responsive, accessible user interfaces. The app successfully bridges the gap between complex legal documentation and everyday users who need quick, reliable access to legal information on their mobile devices.
This project showcases the power of mobile technology in making essential civic information more accessible while maintaining accuracy and usability. Whether someone needs to reference a specific law, study for their DMV test, or review constitutional rights, this app provides a comprehensive solution that works entirely offline.
π https://github.com/AndrewTr0612/USLawReferenceAndroidApp
- Andrew Tr - Solo Developer
- Full-stack mobile development
- UI/UX design
- Database architecture
- Content curation and integration
This project utilized GitHub Copilot, Chat GPT as an AI-assisted development tool in the following ways:
Code Generation & Implementation:
- Assisted in generating Flutter widget structures and boilerplate code
- Helped implement SQLite database operations and queries
- Provided suggestions for state management patterns and best practices
- Generated helper functions for data formatting and transformations
Problem Solving:
- Aided in debugging compilation errors and runtime issues
- Suggested solutions for performance optimization
- Helped resolve dependency conflicts and version compatibility issues
- Provided alternative approaches to implementation challenges
Documentation:
- Assisted in writing code comments and documentation
- Helped structure the README file with comprehensive project information
- Generated documentation for complex functions and classes
Content Structuring:
- Helped organize and format legal text data for database insertion
- Assisted in structuring the DMV question database schema
- Provided guidance on data modeling for law sections
Important Notes:
- All legal content was manually curated from official US government sources
- Core application architecture and design decisions were human-directed
- AI suggestions were reviewed, modified, and validated before implementation
- Final code quality, logic, and functionality were verified through manual testing
- The AI served as a coding assistant, not as the primary developer
The use of GitHub Copilot significantly accelerated development time and helped maintain code quality, but all critical decisions, architecture design, and content accuracy verification were performed by the human developer.
For questions or support, please open an issue on GitHub or contact the developer.
Note: This app is designed for educational and reference purposes only. For official legal advice, please consult a licensed attorney.