Skip to content

Commit

Permalink
style: instruction box style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Mar 20, 2023
1 parent 5e910f5 commit ce48987
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib/widgets/flashcard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,16 @@ class _FlashcardState extends State<Flashcard> {
},
child: const Text('Next'),
),
if (!_isBlurred) Text(widget.cardData['instructions'] ?? ''),
if (!_isBlurred && widget.cardData['instructions'] != '')
Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 100,
child: SingleChildScrollView(
child: Text(widget.cardData['instructions']),
),
),
),
],
),
),
Expand Down

0 comments on commit ce48987

Please sign in to comment.