aboutsummaryrefslogtreecommitdiff
path: root/lib/widgets/custom_markdown_style.dart
blob: 41173f5fda007c01d5471a237f32a17ed0e77474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)),
  }) {}
}