From ace91d2b7389a7e15827f7e1a11d604659acabfc Mon Sep 17 00:00:00 2001 From: davidpkj Date: Sun, 5 Mar 2023 15:03:31 +0100 Subject: Update markdown viewer style --- lib/views/recipe_view.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/views/recipe_view.dart') 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 { 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 { MarkdownBody _buildMarkdownDescription() { return MarkdownBody( + styleSheet: CustomMarkdownStyle.sheet(), data: _controller2.text, selectable: true, onTapLink: (text, href, title) => {}, -- cgit v1.2.3