diff options
Diffstat (limited to 'lib/views')
-rw-r--r-- | lib/views/recipe_view.dart | 4 | ||||
-rw-r--r-- | lib/views/shoplist_view.dart | 2 |
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(); |