Skip to content

Commit

Permalink
feat: added visual progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Feb 16, 2023
1 parent 16e5c93 commit aa0bf7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/widgets/lesson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class _LessonState extends State<Lesson> {
),
),
const SizedBox(height: 20),
LinearProgressIndicator(
value: _currentCardIndex / _cardsLength,
),
IndexedStack(
index: _currentCardIndex,
children: cards.map((card) {
Expand All @@ -63,7 +66,6 @@ class _LessonState extends State<Lesson> {
isReview: isReview,
);
}).toList()),
// TODO display progress bar
],
);
} else if (snapshot.hasError) {
Expand Down

0 comments on commit aa0bf7f

Please sign in to comment.