Skip to content

Abobakr146/DEPI_Flutter_task_database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

DEPI Flutter Task - Database Operations

An application built with Flutter to add and edit notes demonstrating local database operations, data persistence, and SQLite integration as part of the DEPI Flutter development course.

πŸ“± Project Overview

This project showcases Flutter's local database capabilities using SQLite, featuring CRUD operations, data persistence, and efficient database management patterns.

✨ Features

  • πŸ’Ύ Local Database: SQLite integration for offline data storage
  • πŸ”„ CRUD Operations: Create, Read, Update, Delete functionality
  • πŸ“Š Data Persistence: Reliable local data storage
  • 🎯 State Management: Reactive state updates
  • πŸ“± Offline Support: Full functionality without internet connection
  • πŸ” Data Search: Efficient database querying

πŸš€ Getting Started

Prerequisites

  • Flutter SDK (latest stable version)
  • Dart SDK
  • Android Studio / VS Code
  • SQLite (included with Flutter)

Installation

  1. Clone the repository:
git clone https://github.com/Abobakr146/DEPI_Flutter_task_database.git
cd DEPI_Flutter_task_database
  1. Install dependencies:
flutter pub get
  1. Run the application:
flutter run

πŸ“‚ Project Structure

lib/
β”œβ”€β”€ main.dart
β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ database_helper.dart   # SQLite helper class
β”‚   β”œβ”€β”€ models/               # Data models
β”‚   └── queries/              # SQL queries
β”œβ”€β”€ screens/
β”‚   β”œβ”€β”€ home_screen.dart
β”‚   β”œβ”€β”€ add_item_screen.dart
β”‚   └── edit_item_screen.dart
β”œβ”€β”€ widgets/                  # Reusable UI components
└── utils/                    # Helper functions

πŸ—„οΈ Database Features

Core Operations

  • Create: Insert new records into database
  • Read: Query and retrieve data with filters
  • Update: Modify existing records
  • Delete: Remove records safely

πŸš€ Performance Optimization

  • Efficient indexing strategies
  • Query optimization
  • Lazy loading implementation
  • Memory management
  • Background database operations

πŸ“Š Data Management Best Practices

  • Data normalization
  • Transaction management
  • Error handling and recovery

πŸ‘¨β€πŸ’» Author

Abobakr146


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages