How aditya290605/grade-vise works
1. Overall shape
- GradeVise is a Flutter client app with a strongly role-based architecture: one app serves both teachers and students.
- The main application boundary is the Flutter UI layer; almost all business flows live inside lib/, while Android/iOS folders are mostly platform packaging and Firebase configuration.
2. Startup and app bootstrap
- lib/main.dart is the entry point and likely initializes Firebase, selects the initial route, and launches the responsive shell.
- lib/firebase_options.dart plus android/app/google-services.json indicate Firebase is configured for multiple platforms, with FlutterFire-generated runtime options.
3. Core infrastructure dependencies
- The app is built around Firebase services:
- Firebase Auth for sign-in/sign-up and user identity.
- Firestore for classrooms, assignments, submissions, grades, feedback, and announcements.
- Firebase Storage for uploaded files such as assignments, submissions, and model sheets.
- Firebase Messaging for notifications.
- These dependencies are wrapped by service classes under lib/services/, which act as the data-access boundary between UI and backend.
4. Service layer boundaries
- firebase_auth_methods.dart, firestore_methods.dart, storage_methods.dart, classroom_service.dart, and firebase_messaging.dart form the app’s integration layer.
- This layer centralizes Firebase calls so the teacher/student screens do not talk to Firebase directly everywhere.
- firebase_config.dart likely holds app-wide Firebase initialization or environment setup.
5. Role-based navigation model
- The app splits into teacher and student feature trees under lib/teacher/ and lib/student/.
- Screens such as starter_screen.dart, mobile_screen.dart, and web_screen.dart suggest the app chooses both layout and role entry path dynamically.
- responsive_layout/responsive_screen.dart is the top-level presentation boundary for device adaptation.
6. Teacher subsystem
- Teacher flows center on classroom management, assignment creation, grading, and feedback.
- Key modules include:
- Classroom_Page.dart, Landing_page.dart, home_screen.dart, main_page.dart
- Assignments/ for creating and managing assignments
- Submissions/ for reviewing uploads and AI-assisted grading
- feedback/, grading/, announcements/, and profile/about screens
- This side represents the instructor control plane: create content, evaluate work, and publish feedback.
7. Student subsystem
- Student flows cover joining classes, viewing assignments, uploading submissions, checking grades, and reading feedback.
- Important modules include:
- join_class.dart, join_class_dialog.dart
- classroom_screen.dart, assignment_page.dart, assignment_details.dart
- uploade_submisson.dart, submissions.dart
- my_grades.dart, evaluation.dart, clarification_page.dart
- This side is the learner-facing consumption and submission path.
8. AI-assisted grading path
- The teacher/Submissions/ai_methods.dart, pdf_to_text.dart, check_each_submission.dart, and upload_modelsheet.dart files show a distinct grading pipeline.
- The likely flow is: teacher uploads answer/model sheets, submissions are parsed or extracted from PDF, then AI-assisted evaluation produces marks or feedback.
- This is a major architectural boundary because it extends beyond simple CRUD into document processing and automated assessment.
9. Shared UI and reusable components
- Common building blocks live in lib/widgets/ and lib/utils/.
- Widgets such as buttons, text fields, classroom cards/containers, dialogs, PDF viewer, and bottom sheets are reused across teacher and student screens.
- Utility files handle colors, fonts, card styling, and error presentation, which keeps feature pages focused on flow logic rather than UI primitives.
10. Assets and app data files
- assets/ contains fonts, icons, images, and several JSON files:
- credentials.json
- notifications.json
- submission.json
- These appear to support seeded/demo data, UI content, or local configuration rather than acting as the primary source of truth.
- Because the app is Firebase-backed, durable state is expected to live remotely in Firestore/Storage rather than in these assets.
11. Platform packaging and deployment
- The android/ and ios/ folders are standard Flutter platform shells, but they also carry deployment-specific Firebase setup and splash/launch assets.
- flutter_native_splash.yaml indicates a custom splash screen is generated at build time.
- The app is intended for mobile-first use, though the presence of web_screen.dart suggests a responsive or web-capable UI path as well.
12. External integration surface
- The repository does not show a separate backend server; instead, the app integrates directly with managed cloud services.
- Firebase is the main external infrastructure, and the AI grading pieces are embedded client-side or via service wrappers in the Flutter codebase.
- For an architecture diagram, the key external boundaries are: Flutter client, Firebase backend services, and asset-based local configuration/demo data.
Main entry points: services Services · responsive_screen.dart Responsive shell · main.dart main.dart · widgets Widgets
Components 20
App Shell
Flutter entrypoint and responsive startup flow.
- main.dart · App bootstrap and top-level launch point.
grade_vise/lib/main.dart - Firebase options · FlutterFire-generated runtime configuration.
grade_vise/lib/firebase_options.dart - Responsive shell · Chooses web/mobile presentation and startup screen.
grade_vise/lib/responsive_layout/responsive_screen.dart - Starter screen · Initial role or auth landing page.
grade_vise/lib/screens/starter_screen.dart - Mobile screen · Mobile-specific container for the app experience.
grade_vise/lib/screens/mobile_screen.dart - Web screen · Web-specific container for the app experience.
grade_vise/lib/screens/web_screen.dart
Core Services
Firebase integration and data-access boundary.
- Services · Firebase auth, Firestore, storage, messaging, and classroom wrappers.
grade_vise/lib/services
Teacher Flow
Instructor-facing classroom, assignment, grading, and feedback features.
- Teacher home · Primary teacher navigation and landing experience.
grade_vise/lib/teacher/main_page.dart - Classroom page · Teacher classroom management and overview.
grade_vise/lib/teacher/Classroom_Page.dart - Assignments · Assignment creation and assignment list flow.
grade_vise/lib/teacher/Assignments - Submissions · Review, parse, and evaluate student submissions.
grade_vise/lib/teacher/Submissions - Feedback · Return feedback and track classroom responses.
grade_vise/lib/teacher/feedback
Student Flow
Learner-facing class, submission, and grade features.
- Student home · Primary student navigation and landing experience.
grade_vise/lib/student/main_page.dart - Classroom screen · Student class browsing and class entry flow.
grade_vise/lib/student/classroom_screen.dart - Upload work · Assignment submission and upload flow.
grade_vise/lib/student/uploade_submisson.dart - My grades · Student grade and evaluation views.
grade_vise/lib/student/my_grades.dart
Shared UI
Reusable widgets and styling used across roles.
Platform
Firebase config, assets, and native app shells.
- Assets · Icons, images, fonts, and JSON content files.
grade_vise/assets - Android config · Android Firebase and app packaging configuration.
grade_vise/android/app/google-services.json
Connections 20
- main.dart → Firebase options: loads config · Bootstrap uses generated Firebase runtime options.
- main.dart → Responsive shell: starts UI · Entry point launches the responsive app shell.
- Responsive shell → Starter screen: routes to · Startup screen decides initial entry path.
- Responsive shell → Mobile screen: adapts to · Mobile presentation branch.
- Responsive shell → Web screen: adapts to · Web presentation branch.
- Starter screen → Services: auth flow · Initial entry depends on shared Firebase services.
- Teacher home → Services: uses · Teacher shell coordinates classroom operations through services.
- Classroom page → Services: reads/writes · Classroom state and content are stored through the service boundary.
- Assignments → Services: uploads files · Assignments and related documents use Firebase-backed services.
- Submissions → Services: evaluates · Submission review delegates to backend access and document handling services.
- Feedback → Services: publishes feedback · Teacher feedback is written back through the service layer.
- Student home → Services: uses · Student shell relies on the shared service boundary.
- Classroom screen → Services: joins classes · Student classroom membership and listings come from backend services.
- Upload work → Services: uploads work · Student submissions are stored through Firebase-backed services.
- My grades → Services: reads grades · Grades and evaluation results are fetched through the service layer.
- Teacher home → Widgets: composes · Teacher pages reuse shared UI components.
- Student home → Widgets: composes · Student pages reuse shared UI components.
- Widgets → Utils: styles with · Shared widgets use common colors, fonts, and error helpers.
- main.dart → Assets: loads · App startup and screens consume packaged assets.
- Android config → main.dart: boots app · Android packaging launches the Flutter application.