kuubson's picture
Zaprojektuj i wygeneruj kompletną aplikację Flutter (Dart) działającą na iOS, o nazwie TrainLog: dziennik treningu i śledzenie progresu siłowego/sylwetkowego. Aplikacja ma działać offline-first (bez b
afe1e75 verified
raw
history blame contribute delete
609 Bytes
import 'package:isar/isar.dart';
import 'package:uuid/uuid.dart';
part 'set_entry.g.dart';
@collection
class SetEntry {
Id id = Isar.autoIncrement;
@Index(unique: true)
late String uuid;
final workoutExercise = IsarLink<WorkoutExercise>();
/// Weight in kg (always stored as kg)
double weight = 0;
int reps = 0;
/// RPE 1-10
double? rpe;
/// Tempo like 3-1-2-0
String? tempo;
/// Rest in seconds
int? restSeconds;
/// For timed exercises
double? distance;
int? durationSeconds;
int order = 0;
SetEntry() {
uuid = const Uuid().v4();
}
}