A Flutter project demonstrating the use of the Drift package for local database management.
flutter_drift_example
is a sample Flutter application that showcases how to use the Drift package for managing local SQLite databases in a Flutter app. This project includes examples of creating, reading, updating, and deleting data from a local database.
- Local database management using Drift
- CRUD operations (Create, Read, Update, Delete)
- State management with Provider
- Error handling and validation
- Flutter native splash, app icons
To get started with this project, follow these steps:
-
Clone the repository:
git clone https://github.com/Infvyr/flutter_drift_example.git cd flutter_drift_example
-
Install dependencies:
flutter pub get
-
Run the app:
flutter run
This project includes several screens and functionalities:
- Employee List Screen: Displays a list of employees stored in the local database.
- Add Employee Screen: Allows users to add a new employee to the database.
- Edit Employee Screen: Allows users to edit an existing employee's details.
- Delete Employee: Swipe to delete an employee from the list.