wip basics for bloc based state management

This commit is contained in:
2024-04-22 23:02:03 +02:00
parent 19aca8f97f
commit 7129c0dee8
22 changed files with 622 additions and 4 deletions

View File

@ -0,0 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
extension StateExtensions on BuildContext {
TState readController<TState>() => read<TState>();
TState watchController<TState>() => watch<TState>();
}