naturallymitchell / flutter_todo

todo app contains same UI and different state management techniques (without using StatefulWidget)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todos

This repo contains same UI and different state management techniques (without using StatefulWidget) to compare and prefer based on your coding style.


I respect the authors third-party packages used to build this repo. Special thanks to authors of flutter_bloc and GetX from where I learn a lot of flutter stuff


πŸ‘©β€πŸ’» Keep Rocking, While Coding πŸ‘¨β€πŸ’»


Todos Edit Todo
Todos todo_edit

Project Structure

lib
β”œβ”€β”€ bloc
β”‚   β”œβ”€β”€ todos_bloc.dart
β”‚   └── todos_view.dart
β”œβ”€β”€ getx
β”‚   β”œβ”€β”€ todo_controller.dart
β”‚   └── todos_view.dart
β”œβ”€β”€ main.dart
β”œβ”€β”€ streams
β”‚   β”œβ”€β”€ todo_controller.dart
β”‚   β”œβ”€β”€ todo_stream.dart
β”‚   β”œβ”€β”€ todo_stream_flutter.dart
β”‚   └── todo_view.dart
└── todo.dart

Usage

Import one of todo_view.dart to main.dart and it will just work.

// import 'package:todos/bloc/todos_view.dart';
// import 'package:todos/getx/todos_view.dart';
import 'package:todos/streams/todo_view.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const App());
}
  1. State management using BLoC
  2. State management using Get
  3. State management using dart:async#Stream

About

todo app contains same UI and different state management techniques (without using StatefulWidget)


Languages

Language:Dart 37.7%Language:C++ 35.0%Language:CMake 16.5%Language:HTML 8.2%Language:C 1.5%Language:Swift 0.8%Language:Kotlin 0.3%Language:Objective-C 0.1%