@@ -135,11 +135,7 @@ CustomRender listElementRender({
135
135
padding: style? .padding? .nonNegative ?? context.tree.style.padding? .nonNegative
136
136
?? EdgeInsets .only (left: (style? .direction ?? context.tree.style.direction) != TextDirection .rtl ? 10.0 : 0.0 ,
137
137
right: (style? .direction ?? context.tree.style.direction) == TextDirection .rtl ? 10.0 : 0.0 ),
138
- child: Text (
139
- "${style ?.markerContent ?? context .style .markerContent }" ,
140
- textAlign: TextAlign .right,
141
- style: style? .generateTextStyle () ?? context.style.generateTextStyle ()
142
- ),
138
+ child: style? .markerContent ?? context.style.markerContent
143
139
) : Container (height: 0 , width: 0 ),
144
140
Text ("\t " , textAlign: TextAlign .right, style: TextStyle (fontWeight: FontWeight .w400)),
145
141
Expanded (
@@ -149,11 +145,11 @@ CustomRender listElementRender({
149
145
right: (style? .direction ?? context.tree.style.direction) == TextDirection .rtl ? 10.0 : 0.0 ) : EdgeInsets .zero,
150
146
child: StyledText (
151
147
textSpan: TextSpan (
152
- text : (( style? .listStylePosition ?? context.tree.style.listStylePosition) ==
153
- ListStylePosition .INSIDE )
154
- ? "${ style ?. markerContent ?? context . style . markerContent }"
155
- : null ,
156
- children : _getListElementChildren (style ? .listStylePosition ?? context.tree.style.listStylePosition, buildChildren ),
148
+ children : _getListElementChildren ( style? .listStylePosition ?? context.tree.style.listStylePosition, buildChildren)
149
+ .. insertAll ( 0 , context.tree.style.listStylePosition == ListStylePosition .INSIDE ?
150
+ [
151
+ WidgetSpan (alignment : PlaceholderAlignment .middle, child : style ? .markerContent ?? context.style.markerContent ?? Container (height : 0 , width : 0 ))
152
+ ] : [] ),
157
153
style: style? .generateTextStyle () ?? context.style.generateTextStyle (),
158
154
),
159
155
style: style ?? context.style,
0 commit comments