A Flutter-based application used for train coach inspection and cleanliness scoring. It allows users to fill out general information, score specific inspection tasks for each coach, validate input, export data as a PDF, and submit the form data to a remote server as JSON.
-
General Information Collection:
- Work Order Number
- Work Date
- Contractor and Supervisor Names
- Designation
- Train Number
- Arrival & Departure Times
- Inspection Date
- Coach Attendance Tracking
-
Score Table:
- 8 Key Inspection Tasks
- 13 Coaches per train (C1 to C13)
- Score Options:
0,1,X,- - Uses dropdowns for easy selection
-
Validation:
- All fields are validated using
TextFormFieldand form keys
- All fields are validated using
-
PDF Export:
- Generates a professional PDF containing all entered data
- Exports differently for Web (downloads file) and Mobile/Desktop (opens print/share dialog)
-
API Submission:
- Sends JSON data to a test endpoint (
https://httpbin.org/post) using HTTP POST
- Sends JSON data to a test endpoint (
-
UI Customization:
- Background image with adjustable transparency
- Watermark-like design for PDF exports
- Flutter (UI Toolkit)
- Provider (State Management)
- HTTP (API Requests)
- PDF / Printing (PDF Generation & Export)
- Intl (Date Formatting)
git clone https://github.com/DevCodi27/ScoreCardForm.git
cd ScoreCardForm
flutter pub getflutter runFor web:
flutter run -d chromeflutter build apk- Endpoint:
https://httpbin.org/post - Method: POST
- Headers:
Content-Type: application/json - Body: Contains all form fields and score entries
- Uses
pdfandprintingpackages - Supports:
- Mobile → Print dialog
- Web → Auto-download
- Filename:
scorecard.pdf
- Replace the dummy endpoint with a real API
- Use Firebase or your own backend for data persistence
- Add authentication for secure usage
Feel free to fork the repo and submit a pull request. Bug reports and feature suggestions are welcome via Issues.
Stan Abishek A
B.E. CSE @ PSNACET
Flutter Developer
GitHub: DevCodi27
MIT License