-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24e4f4d
commit 5988197
Showing
21 changed files
with
298 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
abstract class CelebrationEvent{} | ||
abstract class CelebrationEvent {} | ||
|
||
class FetchCelebrations extends CelebrationEvent{ | ||
final DateTime dateTime; | ||
FetchCelebrations( this.dateTime); | ||
} | ||
class FetchCelebrations extends CelebrationEvent {} | ||
|
||
class ShowBirthdaysEvent extends CelebrationEvent{} | ||
class ShowAnniversariesEvent extends CelebrationEvent{} | ||
class ShowBirthdaysEvent extends CelebrationEvent {} | ||
|
||
class ShowAnniversariesEvent extends CelebrationEvent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
import '../../../../data/core/utils/bloc_status.dart'; | ||
import '../../../../data/model/employee/employee.dart'; | ||
import '../model/event.dart'; | ||
part 'celebrations_state.freezed.dart'; | ||
|
||
@freezed | ||
class CelebrationsState with _$CelebrationsState{ | ||
const factory CelebrationsState({ | ||
@Default(Status.initial) Status status, | ||
required DateTime currentWeek, | ||
@Default(false) bool showAllBdays, | ||
@Default(false) bool showAllAnniversaries, | ||
@Default([]) List<Event> birthdays, | ||
@Default([]) List<Event> anniversaries, | ||
String? error | ||
})= _CelebrationsState; | ||
} | ||
class CelebrationsState with _$CelebrationsState { | ||
const factory CelebrationsState( | ||
{@Default(Status.initial) Status status, | ||
@Default(false) bool showAllBdays, | ||
@Default(false) bool showAllAnniversaries, | ||
@Default([]) List<Event> birthdays, | ||
@Default([]) List<Event> anniversaries, | ||
String? error}) = _CelebrationsState; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.