Skip to content

This repository demonstrates how to implement the Model-View-ViewModel (MVVM) architecture in a Flutter application using the GetX package for state management and dependency injection.

Notifications You must be signed in to change notification settings

googlermridul/getx_mvvm

Repository files navigation

Flutter MVVM with GetX

Welcome to the Flutter MVVM with GetX project! This repository demonstrates how to implement the Model-View-ViewModel (MVVM) architecture in a Flutter application using the GetX package for state management and dependency injection.

Table of Contents

Introduction

MVVM (Model-View-ViewModel) is a design pattern that separates the development of the graphical user interface from the business logic or back-end logic (the data model). This pattern helps in organizing code, making it more modular, maintainable, and testable.

GetX is a powerful Flutter package that simplifies state management, dependency injection, and route management, making it easier to implement the MVVM architecture.

Features

  • Clean and structured code using MVVM architecture
  • State management with GetX
  • Dependency injection with GetX
  • Easy navigation with GetX routing

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/googlermridul/getx_mvvm.git
    
  2. Navigate to the project directory:

    cd flutter_mvvm_getx
    
  3. Install dependencies:

    flutter pub get
    
  4. Run the app:

    flutter run
    

Project Structure

lib ├── main.dart ├── data │ ├── models │ └── repositories ├── ui │ ├── views │ └── widgets ├── viewmodels └── services

getx mvvm

About

This repository demonstrates how to implement the Model-View-ViewModel (MVVM) architecture in a Flutter application using the GetX package for state management and dependency injection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published