School Management System

A responsive Flutter dashboard for registering schools, managing student and teacher records, organizing classes, and exporting school data through a REST API.

  • Flutter
  • Dart
  • BLoC / Cubit
  • Dio
  • REST API
  • Hive CE
  • GetIt

I developed the Flutter client for a school administration system that brings onboarding, staff records, student records, and class setup into one dashboard. Administrators can access the teacher and class modules, and both administrators and teachers can open the student module. A persistent sidebar on wider layouts becomes a navigation drawer on smaller screens.

Features

  • School onboarding and sign-in. A three-step registration flow collects school and administrator details. The app checks the saved session at startup and supports signing out from the dashboard.
  • Student records. Authorized users can view, add, edit, and delete student records. The forms validate inputs and support profile photo uploads.
  • Teacher records. Administrators can view the teacher list and add staff records with subject details and a profile photo.
  • Class setup. Administrators can view classes and create new records with a name, grade, and section.
  • CSV export. The student, teacher, and class modules request CSV data from the API and use File Picker to save it.
  • Profile and appearance. The settings screen displays profile information and remembers the selected light or dark theme.

Architecture

The client is organized by feature. Authentication, students, teachers, and classes each have their own screens, state, services, and models. Shared infrastructure handles networking, storage, theming, and reusable interface components.

Layer Responsibility
Flutter presentation Renders the dashboard, tables, dialogs, and forms. It reacts to loading, empty, and error states.
BLoC and Cubit Coordinates user actions and API calls. Cubits map responses into typed Dart models and update the displayed records.
Application services and Dio Feature services call the REST API through a shared Dio client. An interceptor adds the bearer token to requests and clears the saved token after an HTTP 401 response.
GetIt and Hive CE GetIt wires the authentication and theme dependencies. Hive CE stores the session token, onboarding flag, and theme preference locally.

Application flow

  1. Open the app. The app initializes local storage and checks for a saved session. A fresh installation opens school registration. A returning user can sign in or resume a valid session.
  2. Open the dashboard. The app loads the signed-in user's profile and uses their role to show the available modules and quick actions.
  3. Load a module. The feature Cubit requests data through its service. The API response is mapped into Dart models and displayed in a table, with feedback while the request is pending or if it fails.
  4. Save a record or export it. The form validates input before the Cubit submits it. Successful student edits update the matching row in the current list. CSV exports download the file from the API and open a save dialog.

In development

The Exams module is a UI prototype with a sample schedule, class and status filters, and an exam form.