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

GitHub

View Github