File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,12 @@ class BlockText extends StatelessWidget {
83
83
final RichText child;
84
84
final EdgeInsets padding;
85
85
final EdgeInsets margin;
86
- final String leadingChar;
87
86
final Decoration decoration;
88
87
89
88
BlockText ({
90
89
@required this .child,
91
90
this .padding,
92
91
this .margin,
93
- this .leadingChar = '' ,
94
92
this .decoration,
95
93
});
96
94
@@ -101,13 +99,7 @@ class BlockText extends StatelessWidget {
101
99
padding: this .padding,
102
100
margin: this .margin,
103
101
decoration: this .decoration,
104
- child: Row (
105
- crossAxisAlignment: CrossAxisAlignment .start,
106
- children: < Widget > [
107
- leadingChar.isNotEmpty ? Text (leadingChar) : Container (),
108
- Expanded (child: child),
109
- ],
110
- ),
102
+ child: child,
111
103
);
112
104
}
113
105
}
@@ -848,12 +840,13 @@ class HtmlRichTextParser extends StatelessWidget {
848
840
left: parseContext.indentLevel * indentSize, top: 3.0 ),
849
841
child: RichText (
850
842
text: TextSpan (
851
- text: '' ,
852
- style: nextContext.childStyle,
853
- children: < TextSpan > [],
843
+ text: '$leadingChar ' ,
844
+ style: DefaultTextStyle .of (buildContext).style,
845
+ children: < TextSpan > [
846
+ TextSpan (text: '' , style: nextContext.childStyle)
847
+ ],
854
848
),
855
849
),
856
- leadingChar: '$leadingChar ' ,
857
850
);
858
851
parseContext.rootWidgetList.add (blockText);
859
852
nextContext.parentElement = blockText.child.text;
You can’t perform that action at this time.
0 commit comments