Skip to content

Commit

Permalink
feat: added flashcard media control visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Mar 20, 2023
1 parent ddbd9b4 commit eeecd5f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/lib/widgets/flashcard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,17 @@ class _FlashcardState extends State<Flashcard> {
imageFilter: ImageFilter.blur(sigmaX: 48, sigmaY: 48),
child: Image.network(widget.cardData['assetUrl'])),
),
// TODO add media control buttons: stop, prev frame, play/pause, next frame, playback speed
// TODO media controls implementation
Row(
children: [
IconButton(onPressed: () {}, icon: const Icon(Icons.stop)),
IconButton(
onPressed: () {}, icon: const Icon(Icons.skip_previous)),
IconButton(onPressed: () {}, icon: const Icon(Icons.play_arrow)),
IconButton(onPressed: () {}, icon: const Icon(Icons.skip_next)),
IconButton(onPressed: () {}, icon: const Icon(Icons.speed)),
],
),
// TODO add instructional body text
_isBlurred
? TextButton(
Expand Down

0 comments on commit eeecd5f

Please sign in to comment.