All Projects → thealteria → flutter_getx_template

thealteria / flutter_getx_template

Licence: MIT license
A flutter start project template with boilerplate code to save you time whenever you start a new flutter project using getx pattern.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to flutter getx template

flutter bolg manage
Flutter实战项目,采用Getx框架管理,遵循Material design设计风格,适合您实战参考或练手
Stars: ✭ 373 (+1392%)
Mutual labels:  flutter-examples, getx
Mathematics
In this application, we can perform some actions like subtraction, addition, multiplication, and division. And by selecting any of these, you will receive a PDF with the answer key to your MCQ or question!
Stars: ✭ 45 (+80%)
Mutual labels:  flutter-examples
flutter pokedex
Pokedex app built with Flutter (with lots of animations) using Clean Architecture
Stars: ✭ 1,603 (+6312%)
Mutual labels:  flutter-examples
AnimatedWidgetsFlutter
Sample code for exploring implicity animated widgets in Flutter.
Stars: ✭ 17 (-32%)
Mutual labels:  flutter-examples
flutter pull to reach demo
A new way to access controls in your flutter app that are normally hard to reach with your thumb
Stars: ✭ 23 (-8%)
Mutual labels:  flutter-examples
FlutterMovieDetail
Simple Flutter Movie List & Detail Screen ui.
Stars: ✭ 40 (+60%)
Mutual labels:  flutter-examples
Flutter-Chat-Bar
Link to the package -. https://pub.dartlang.org/packages/flutter_chat_bar
Stars: ✭ 39 (+56%)
Mutual labels:  flutter-examples
flutter camera app
An android/iOS camera app using flutter
Stars: ✭ 15 (-40%)
Mutual labels:  flutter-examples
FlutterNote
Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
Stars: ✭ 22 (-12%)
Mutual labels:  flutter-examples
pixiv func android
功能齐全的Pixiv第三方客户端 免代理 支持查看动图查看直播
Stars: ✭ 167 (+568%)
Mutual labels:  getx
smart-home-dashboard
No description or website provided.
Stars: ✭ 25 (+0%)
Mutual labels:  flutter-examples
gleam
一个简单、轻量、可靠的Flutter UI 组件库
Stars: ✭ 24 (-4%)
Mutual labels:  flutter-examples
Login-Register-FlutterApp
Login Register Auth App by Delicia Fernandes using Google and Facebook sign in.
Stars: ✭ 87 (+248%)
Mutual labels:  flutter-examples
flutter rsa generator example
Example of Generating RSA Keys
Stars: ✭ 31 (+24%)
Mutual labels:  flutter-examples
connectycube-flutter-samples
Code samples for Flutter, based on ConnectyCube platform
Stars: ✭ 64 (+156%)
Mutual labels:  flutter-examples
BloodMS
🔥 🔥 🔥 A blood management project. 🔥 🔥 🔥
Stars: ✭ 48 (+92%)
Mutual labels:  flutter-examples
flutter examples
Random flutter examples
Stars: ✭ 18 (-28%)
Mutual labels:  flutter-examples
build-viking-sample
Sample app for Build Viking.
Stars: ✭ 31 (+24%)
Mutual labels:  flutter-examples
appflowy
AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
Stars: ✭ 24,929 (+99616%)
Mutual labels:  flutter-examples
Responsive-and-Animated-Portfolio-Flutter
Today we will show you how you can create your developer portfolio website and app using flutter.
Stars: ✭ 183 (+632%)
Mutual labels:  flutter-examples

GetX Boilerplate Template

A boilerplate project created in flutter using GetX.

Getting Started

The boilerplate contains the minimal implementation required to create a new library or project. The repository code is preloaded with some basic components and utilities like basic app architecture, initializer, app theme, linting, constants, api error handling with proper errors display using GetConnect along with a **retry button** and storage using get_storage. Some 3rd party dependencies required to create a new project as per your preference. By using boilerplate code as standard initializer, we can have same patterns in all the projects that will inherit it if you're using GetX. This will also help in reducing setup & development time by allowing you to use same code pattern and avoid re-writing from scratch.

How to Use

Step 1:

Download or clone this repo by using the link below:

https://github.com/thealteria/flutter_getx_template.git

Or simply click on the Use this template button and make your own repository using this template.

Step 2:

Go to project root and execute the following command in console to get the required dependencies:

flutter pub get 

NOTE: Don't forget to change the 'app name' and 'package name' in android, ios, pubspec and strings files.

Boilerplate Features:

  • Initializer - to intialize dependencies on startup
  • Home
  • Routing
  • Theme
  • Dynamic UI support
  • GetConnect with custom retry button and error handling
  • GetStorage
  • GetX (State Management and Naviagtion)
  • Custom Validations, widgets, dialogs, extensions and much more

Libraries & Tools Used

Folder Structure

Here is the core folder structure which flutter provides.

flutter-app/
|- android
|- build
|- ios
|- lib
|- test

Here is the folder structure we have been using in this project

lib/
|- app/
|- main.dart
app/
|- common/
   |- storage/
   |- util/
   |- values/
   |- constants.dart
|- data/
   |- errors/
   |- interface_controller/
   |- api_helper.dart
   |- app_response.dart
|- modules/
   |- home/
   |- widgets/
|- routes/

Now, lets dive into the lib folder which has the main code for the application.

1- common - Contains all the utilities/common functions  which are using throughout the app. This directory contains `constants`. `utilities`, `theme`, `strings`, `dimensions`, `storage`, `text styles`, `colors` and `images path`.
2- data - Contains the data layer of your project, includes a controller for retry apis, `custom errors` and response & error handling.
3- modules - Contains all the ui of your project, contains sub directory for each screen and custo widgets as per the need.
4- routes - Contains the files for routes for your application.
5- main.dart - This is the starting point of the application. All the application level configurations are defined in this file i.e, theme, routes, title, orientation etc.

NOTE: You can use Get Cli to auto generate ui pages, controllers and routes.

Conclusion

This boilerplate template maybe seen over-architectured for what it is - but it is an example only. You can always customize it as per your preferences and need. All the issues/pull requests are welcome to make this boilerplate project more easy-to-use. If you liked it then don’t forget to the repo to show your support🙂

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].