From ce4898768b521690e072d7d0f6fc2b7d87a01d96 Mon Sep 17 00:00:00 2001 From: Seth Cohen Date: Mon, 20 Mar 2023 13:26:56 -0400 Subject: [PATCH] style: instruction box style changes --- src/lib/widgets/flashcard.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/widgets/flashcard.dart b/src/lib/widgets/flashcard.dart index 88c9d81..f8648eb 100644 --- a/src/lib/widgets/flashcard.dart +++ b/src/lib/widgets/flashcard.dart @@ -129,7 +129,16 @@ class _FlashcardState extends State { }, 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']), + ), + ), + ), ], ), ),