diff options
Diffstat (limited to 'lib/widgets')
-rw-r--r-- | lib/widgets/custom_markdown_style.dart | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/widgets/custom_markdown_style.dart b/lib/widgets/custom_markdown_style.dart new file mode 100644 index 0000000..8a1c421 --- /dev/null +++ b/lib/widgets/custom_markdown_style.dart @@ -0,0 +1,27 @@ +import 'package:flutter/material.dart'; + +import 'package:kulinar_app/constants.dart'; + +import 'package:flutter_markdown/flutter_markdown.dart'; + +class CustomMarkdownStyle extends MarkdownStyleSheet { + MarkdownStyleSheet({ + tableBody: cRecipeDescriptionStyle, + a: cRecipeDescriptionStyle, + p: cRecipeDescriptionStyle, + h1: cRecipeSubtitleStyle, + h2: cRecipeSubtitleStyle, + h3: cRecipeSubtitleStyle, + h4: cRecipeSubtitleStyle, + h5: cRecipeSubtitleStyle, + h6: cRecipeSubtitleStyle, +/* TODO: remove code and quote block + blockquoteDecoration: BoxDecoration(color: Color.fromARGB(255, 255, 13, 13)), + code: cDetailsTextStyle, +*/ + listIndent: 15.0, + listBullet: cRecipeDescriptionStyle, + listBulletPadding: const EdgeInsets.only(right: 10.0), + // horizontalRuleDecoration: BoxDecoration(border: Border.all(color: Colors.grey, width: 0.5)), + }) {} +} |