aboutsummaryrefslogtreecommitdiff
path: root/lib/views
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2023-03-05 15:03:31 +0100
committerdavidpkj <davidpenkow1@gmail.com>2023-03-05 15:03:31 +0100
commitace91d2b7389a7e15827f7e1a11d604659acabfc (patch)
tree75731f1a2ff429a4151161b31cca7e5d901126d1 /lib/views
parent14e4496de4138c317791030215803e7d57ec85bc (diff)
Update markdown viewer style
Diffstat (limited to 'lib/views')
-rw-r--r--lib/views/recipe_view.dart4
-rw-r--r--lib/views/shoplist_view.dart2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/views/recipe_view.dart b/lib/views/recipe_view.dart
index faaa0ca..c22ea2b 100644
--- a/lib/views/recipe_view.dart
+++ b/lib/views/recipe_view.dart
@@ -6,6 +6,7 @@ import 'package:kulinar_app/constants.dart';
import 'package:kulinar_app/views/image_view.dart';
import 'package:kulinar_app/models/recipe_class.dart';
import 'package:kulinar_app/widgets/toastbar_widget.dart';
+import 'package:kulinar_app/widgets/custom_markdown_style.dart';
import 'package:kulinar_app/models/data/recipe_data_class.dart';
import 'package:kulinar_app/widgets/page_route_transitions.dart';
import 'package:kulinar_app/widgets/utility_icon_row_widget.dart';
@@ -130,7 +131,7 @@ class RecipeViewState extends State<RecipeView> {
setState(() {});
}
- // TODO: FIXME: This might introduce bugs later (sanitize); maybe use FileHandler?
+ // TODO: This might introduce bugs later (sanitize); maybe use FileHandler?
void downloadRecipe(BuildContext context, Recipe recipe) async {
RecipeData.recipeList.add(recipe);
ToastBar.showToastBar(context, AppLocalizations.of(context)!.downloadSuccess);
@@ -274,6 +275,7 @@ class RecipeViewState extends State<RecipeView> {
MarkdownBody _buildMarkdownDescription() {
return MarkdownBody(
+ styleSheet: CustomMarkdownStyle.sheet(),
data: _controller2.text,
selectable: true,
onTapLink: (text, href, title) => {},
diff --git a/lib/views/shoplist_view.dart b/lib/views/shoplist_view.dart
index e13ef21..35332bc 100644
--- a/lib/views/shoplist_view.dart
+++ b/lib/views/shoplist_view.dart
@@ -52,7 +52,7 @@ class ShoplistViewState extends State<ShoplistView> {
);
}
- // TODO: FIXME: Sometimes exception "cant call insertItem of null" is thrown when first item is added or last is removed
+ // TODO: Sometimes exception "cant call insertItem of null" is thrown when first item is added or last is removed
Widget _buildAnimatedList() {
if (ShoplistData.shoplist.isEmpty) return const NoContentError();