Обновлен проект. Добавлена БД
This commit is contained in:
@@ -2,13 +2,14 @@ import 'package:bloc/bloc.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:remever/components/notifiers/home_screen_data.dart';
|
||||
import 'package:remever/database/database.dart';
|
||||
import 'package:remever/inject.dart';
|
||||
|
||||
part 'collection_state.dart';
|
||||
part 'collection_cubit.freezed.dart';
|
||||
|
||||
class CollectionCubit extends Cubit<CollectionState> {
|
||||
CollectionCubit() : super(CollectionState.loading());
|
||||
CollectionCubit() : super(CollectionState.data());
|
||||
|
||||
/// Нотифаер домашнего экрана
|
||||
CollectionData get _cd => getIt<CollectionData>();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
part of 'collection_cubit.dart';
|
||||
|
||||
@freezed
|
||||
class CollectionState with _$CollectionState {
|
||||
sealed class CollectionState with _$CollectionState {
|
||||
const factory CollectionState.loading() = _Loading;
|
||||
const factory CollectionState.data() = _Data;
|
||||
const factory CollectionState.empty() = _Empty;
|
||||
|
||||
Reference in New Issue
Block a user