Skip to content

Commit

Permalink
cleanup achievement screen
Browse files Browse the repository at this point in the history
  • Loading branch information
NeXTormer committed Feb 21, 2024
1 parent 4e2b7d7 commit 926dba2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
11 changes: 5 additions & 6 deletions lib/screens/achievement_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import 'package:frederic/main.dart';
import 'package:frederic/widgets/achievement_screen/achievement_goal_title_segment.dart';
import 'package:frederic/widgets/achievement_screen/achievement_header.dart';
import 'package:frederic/widgets/achievement_screen/achievement_progress_segment.dart';
import 'package:frederic/widgets/achievement_screen/achievement_stats_segment.dart';
import 'package:frederic/widgets/achievement_screen/achievement_timeline_segment.dart';
import 'package:frederic/widgets/standard_elements/frederic_action_dialog.dart';
import 'package:frederic/widgets/standard_elements/frederic_button.dart';
import 'package:frederic/widgets/standard_elements/frederic_heading.dart';
Expand All @@ -34,9 +32,10 @@ class AchievementScreen extends StatelessWidget {
AchievementGoalTitleSegment(goal),
_AchievementTitle('Your Progress'),
AchievementProgressSegment(goal),
_AchievementTitle('Stats'),
AchievementStatsSegment(goal),
AchievementTimelineSegment(goal),
//TODO: implement correctly
// _AchievementTitle('Stats'),
// AchievementStatsSegment(goal),
// AchievementTimelineSegment(goal),
buildDeleteButton(),
],
),
Expand All @@ -55,7 +54,7 @@ class AchievementScreen extends StatelessWidget {
Widget buildDeleteButton() {
return SliverToBoxAdapter(
child: Container(
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 28),
padding: const EdgeInsets.symmetric(vertical: 24, horizontal: 16),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AchievementProgressSegment extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
AchievementProgressBar(goal, goal.startState.toDouble(),
length: adjustedProgressBarLength),
progressRatio: 0.1, length: adjustedProgressBarLength),
],
),
),
Expand All @@ -44,7 +44,7 @@ class AchievementProgressSegment extends StatelessWidget {
goal,
goal.endState.toDouble(),
progressRatio: 0.96,
delayInMillisecond: 200,
delayInMillisecond: 0,
length: adjustedProgressBarLength,
),
],
Expand Down
6 changes: 3 additions & 3 deletions macos/Flutter/ephemeral/Flutter-Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/felix/Developer/SDKs/flutter
FLUTTER_APPLICATION_PATH=/Users/felix/Developer/Projects/NeverSkip
FLUTTER_ROOT=/home/felix/Dev/SDKs/flutter
FLUTTER_APPLICATION_PATH=/home/felix/Dev/Projects/frederic
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.2.0
FLUTTER_BUILD_NUMBER=24021701
FLUTTER_BUILD_NUMBER=24021702
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
Expand Down
6 changes: 3 additions & 3 deletions macos/Flutter/ephemeral/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/felix/Developer/SDKs/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/felix/Developer/Projects/NeverSkip"
export "FLUTTER_ROOT=/home/felix/Dev/SDKs/flutter"
export "FLUTTER_APPLICATION_PATH=/home/felix/Dev/Projects/frederic"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.2.0"
export "FLUTTER_BUILD_NUMBER=24021701"
export "FLUTTER_BUILD_NUMBER=24021702"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
Expand Down

0 comments on commit 926dba2

Please sign in to comment.