Improve repo structure (#22)

* app updated

* readme updated

* rename base folder

* update chatty's readme

* move apps to packages dir

* update repo overview

Co-authored-by: diegoveloper <[email protected]>
This commit is contained in:
Neevash Ramdial (Nash)
2021-03-10 15:18:00 -04:00
committed by GitHub
co-authored by diegoveloper
parent bd6bb66279
commit 030c3eb428
290 changed files with 3804 additions and 4 deletions
@@ -0,0 +1,19 @@
import 'package:stream_chatter/domain/usecases/logout_usecase.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class SettingsSwitchCubit extends Cubit<bool> {
SettingsSwitchCubit(bool state) : super(state);
void onChangeDarkMode(bool isDark) => emit(isDark);
}
class SettingsLogoutCubit extends Cubit<void> {
SettingsLogoutCubit(this._logoutUseCase) : super(null);
final LogoutUseCase _logoutUseCase;
void logOut() async {
await _logoutUseCase.logout();
emit(null);
}
}