Initial commit
This commit is contained in:
15
lib/presentation/home/home_state.dart
Normal file
15
lib/presentation/home/home_state.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:trainhub_flutter/domain/entities/program_workout.dart';
|
||||
|
||||
part 'home_state.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class HomeState with _$HomeState {
|
||||
const factory HomeState({
|
||||
String? activeProgramName,
|
||||
@Default(0) int completedWorkouts,
|
||||
@Default(0) int totalWorkouts,
|
||||
String? nextWorkoutName,
|
||||
@Default([]) List<ProgramWorkoutEntity> recentActivity,
|
||||
}) = _HomeState;
|
||||
}
|
||||
Reference in New Issue
Block a user