feat(diary): New models for calendar and autocomplete fix

This commit is contained in:
2024-07-19 11:55:48 +03:00
parent dbe8ac0999
commit be461e4183
13 changed files with 1140 additions and 444 deletions

View File

@@ -0,0 +1,19 @@
import 'package:eatvio_app/features/calendar/models/calendar_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'calendar_state.freezed.dart';
@freezed
abstract class CalendarState with _$CalendarState {
const factory CalendarState() = _CalendarState;
const factory CalendarState.loading() = CalendarStateLoading;
const factory CalendarState.loaded({
required List<CalendarModel> calendarList,
}) = CalendarStateLoaded;
const factory CalendarState.error({
required String errorMessage,
}) = CalendarStateError;
}