Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-qwerty committed Aug 31, 2024
1 parent 6d8c44f commit 5414c86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
7 changes: 4 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _HomePageState extends State<HomePage> {

// Define exercises with repetitions for each level
final Map<String, Map<int, String>> _exerciseDetails = {
'Death in a round': {1: '3 push-ups', 2: '5 push-ups'},
'Death in a round': {1: '2 push-ups', 2: '5 push-ups'},
'Choked a 1v1': {1: '5 burpees', 2: '10 burpees'},
'Team kill': {1: '8 burpees', 2: '15 burpees'},
'Lost a match': {1: '10 sit-ups', 2: '15 sit-ups'},
Expand All @@ -53,7 +53,7 @@ class _HomePageState extends State<HomePage> {
};

final Map<String, Map<int, int>> _exerciseRepetitions = {
'Death in a round': {1: 3, 2: 5},
'Death in a round': {1: 2, 2: 5},
'Choked a 1v1': {1: 5, 2: 10},
'Team kill': {1: 8, 2: 15},
'Lost a match': {1: 10, 2: 15},
Expand Down Expand Up @@ -351,7 +351,8 @@ class _HomePageState extends State<HomePage> {
int total = _calculateTotal(event, level, count);

// Fetch exercise description from _exerciseDetails
String description = _exerciseDetails[event]?[level] ?? 'Description not available';
String description = _exerciseDetails[event]?[level] ??
'Description not available';

return ListTile(
contentPadding: const EdgeInsets.symmetric(
Expand Down
8 changes: 0 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
intl:
dependency: "direct main"
description:
name: intl
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
url: "https://pub.dev"
source: hosted
version: "0.19.0"
leak_tracker:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ dependencies:
sqflite: ^2.0.0+3
path: ^1.8.0
provider: ^6.0.3
intl: ^0.19.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 5414c86

Please sign in to comment.