This is a simple client of Reddit built with MVVM and Provider powered by a custom OAuth2.0 login

Overview

πŸ‘· πŸ”§ πŸ”© Flutter Starter Architecture (MVVM + Hive)

My custom starter project for Flutter apps.

I was looking for a simple way to build Flutter app in a scalable and clear way way to operate. So I've spent a little to search for how to implement an MVVM architecture in a proper and efficient way for scalable apps. This is the first result of my research. I use it for two projects now. This one provide an MVVM architecture powered by get_it and provider. This work was mainly inspired by the work of Filledstacks.

πŸ‘€ Overview

I have made:

  • a helpers folder where I have put all the utilities of the project such as constant values, dart enumerate, extensions, theming, and other general utilities.
  • a models folder where I have put all the data's classes representation.
  • a services folder where I have put all folders relative to data's storing and fetching base on local storage, firebase, or API.
  • a viewmodels folder where I put all the viewmodels related files. In the easiest way, I call viewmodel a bridge between the models, services, and views. Their job is to handle the business logic of the view they are related to in order to make the views part safe from anything non-relevant to UI.
  • a views folder where are stored the UI part of the application. Each view/page/screen of the application is put here in differents folders. Those folders contain the base file of the view and a widgets folder where are stored the widgets which are used only on this view. The global widgets are located in the widgets folder.

I have also added a base class for viewmodels here. All the next viewmodels you'll write should inherit from the BaseViewModel class. There is also a BaseView widget here to mix the access easily to the base viewmodel proper to each class.

At the root of the app, you will see the locator.dart file where I registered an instance of each service and viewmodel in order to use them efficiently in the whole app. You will also find the routes.dart where the named routes of the app are stored in the AppRouter class.

On this branch I have added some utilities on to handle local storage with Hive.

πŸ’₯ Future

I will create new branches to add more base project with various kind of scalable architecture.

πŸ”Œ Plugins inside

The repository contains based packages for provider, firebase, firebase_auth, cloud_firestore, hive, and get_it

😎 Author(s)

Junior Medehou Twitter Follow

Getting Started with Flutter

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

You might also like...

A Flutter MVVM provider demo application.

A Flutter MVVM provider demo application.

Flutter MVVM + Provider Demo A Flutter MVVM provider demo application. Demo About It simply loads Posts data from API and render the posts on the scre

Oct 17, 2022

Flutter app using MVVM architecture pattern , dio , provider , intl packages.

Flutter app using MVVM architecture pattern , dio , provider , intl packages.

News App Simple news application using free news API for fetching realtime data from the internet. Features -Used MVVM architecture pattern. Packages

Mar 25, 2022

Responsive Whatsapp CLone - MVVM Architecture,Provider

whatsapp_clone Flutter project. Using MVVM Architecture, firebase, Provider and Rest API This project is a starting point for a Flutter application. A

Jan 2, 2023

Dusyeri provider task - Dusyeri provider task built using flutter

Dusyeri provider task - Dusyeri provider task built using flutter

Düşyeri Provider Task https://github.com/alper-mf/dusyeri_provider_task/blob/7d1

May 9, 2022

Redditech: Reddit Mobile App Built With Flutter

Redditech: Reddit Mobile App Built With Flutter

Mobile-app-Reddit Screenshots of the project Welcome page OAuth2 page Feed page Description of a post page Drawer Settings Description of a subreddit

Jan 6, 2022

Responsive Full Stack Reddit Clone - Works on Android, iOS & Web! built with Flutter πŸš€πŸ’™

πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ UNDER CONSTRUCTION πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ πŸ”¨ πŸ› οΈ Reddit Clone πŸ“± πŸ’™ Responsive Full Stack Reddit Clone - Works on Android, i

Dec 15, 2022

Note provider - Note App using Provider state management, Sqflite and Localization for two language Arabic and English.

note_provider Sqflite with provider statemanagement Getting Started This project is a starting point for a Flutter application. A few resources to get

Jan 1, 2022

Weibo@Flow - A third party Weibo client for Android with Material You theming (iOS version later). πŸ’ͺ Powered by Flutter πŸ’ͺ

Weibo@Flow - A third party Weibo client for Android with Material You theming (iOS version later).  πŸ’ͺ Powered by Flutter πŸ’ͺ

Weibo@Flow - A third party Weibo client for Android with Material You theming (iOS version later). πŸ’ͺ Powered by Flutter πŸ’ͺ

Sep 19, 2022

Redditech: use the Reddit API in order to build a mobile app

Redditech: use the Reddit API in order to build a mobile app

Redditech Introduction Redditech is an IT project in which we had to use the Reddit API (https://www.reddit.com/dev/api/) in order to build a mobile a

Nov 15, 2022
Owner
Junior Medehou
20 yo | Lead GDSC Epitech BΓ©nin | Focused on Dart and TypeScript | Flutter Developer | Passionate about AI, Data and UI
Junior Medehou
Authentication API client with Flutter (Login, Register, Google Login, Facebook Login, Apple Login)

Flutter Auth App (Login, Register, Google Login, Facebook Login, Apple Login) To use this client, get the server up and running. Try it out now! App S

Denzel Giraldo 50 Jan 4, 2023
Neha Tanwar 4 Feb 2, 2022
Flutter mvvm archi - Flutter Advanced Course - Clean Architecture With MVVM

flutter_mvvm_archi A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

Namesh Kushantha 0 Jan 8, 2022
A reddit client built with Flutter

Fritter for Reddit is a Reddit Client built with Flutter How to build Go to reddit prefs and create a new application here https://www.reddit.com/pref

Tushar Paliwal 77 Nov 14, 2022
πŸš€ User management app built in flutter using clean architecture, MVVM, get it, dio, RxDart, bloc, cubit, getX and provider

?? Go Rest app In this project, we are going to build a user management app using Flutter. We have used the Go REST API to make HTTP request methods.

Sina 99 Aug 14, 2023
Reddit Flutter Client made for an Epitech Project

Get the essential from your Reddit browsing Flapp is a mobile app which lets you access your favorite subreddits and enjoy their contents while having

Bluub 3 Nov 4, 2022
Glance - A client for Reddit written in Flutter

Glance About the app Glance is an unofficial client for Reddit. However, it allows you to only browse through media posts such as photos and videos. I

Albert Wolszon 105 Nov 25, 2022
Music player application for android. It's uses MVVM architecture and Provider & ValueNotifier state management.

music-player-flutter Flutter music player application which is my personal project published to play store. Project structures are as following,

null 30 Jul 10, 2022
Menaclub app for admin using nodejs as backend,RestAPI,provider as statemangement and follows MVVM architecture

menzclub_admin A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started i

Pranav Pv 8 Nov 7, 2022
Touranment Manager app using Firebase ,provider and MVVM Architecture

tournament_lotter A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you starte

Pranav Pv 10 Nov 25, 2022