@@ -77,6 +77,12 @@ class Style {
7777 /// Default: ListStyleType.DISC
7878 ListStyleType listStyleType;
7979
80+ /// CSS attribute "`list-style-position` "
81+ ///
82+ /// Inherited: yes,
83+ /// Default: ListStylePosition.OUTSIDE
84+ ListStylePosition listStylePosition;
85+
8086 /// CSS attribute "`padding` "
8187 ///
8288 /// Inherited: no,
@@ -183,6 +189,7 @@ class Style {
183189 this .lineHeight,
184190 this .letterSpacing,
185191 this .listStyleType,
192+ this .listStylePosition,
186193 this .padding,
187194 this .margin,
188195 this .textAlign,
@@ -251,6 +258,7 @@ class Style {
251258 lineHeight: other.lineHeight,
252259 letterSpacing: other.letterSpacing,
253260 listStyleType: other.listStyleType,
261+ listStylePosition: other.listStylePosition,
254262 padding: other.padding,
255263 //TODO merge EdgeInsets
256264 margin: other.margin,
@@ -288,6 +296,7 @@ class Style {
288296 fontWeight: child.fontWeight ?? fontWeight,
289297 letterSpacing: child.letterSpacing ?? letterSpacing,
290298 listStyleType: child.listStyleType ?? listStyleType,
299+ listStylePosition: child.listStylePosition ?? listStylePosition,
291300 textAlign: child.textAlign ?? textAlign,
292301 textShadow: child.textShadow ?? textShadow,
293302 whiteSpace: child.whiteSpace ?? whiteSpace,
@@ -309,6 +318,7 @@ class Style {
309318 double lineHeight,
310319 double letterSpacing,
311320 ListStyleType listStyleType,
321+ ListStylePosition listStylePosition,
312322 EdgeInsets padding,
313323 EdgeInsets margin,
314324 TextAlign textAlign,
@@ -341,6 +351,7 @@ class Style {
341351 lineHeight: lineHeight ?? this .lineHeight,
342352 letterSpacing: letterSpacing ?? this .letterSpacing,
343353 listStyleType: listStyleType ?? this .listStyleType,
354+ listStylePosition: listStylePosition ?? this .listStylePosition,
344355 padding: padding ?? this .padding,
345356 margin: margin ?? this .margin,
346357 textAlign: textAlign ?? this .textAlign,
@@ -421,6 +432,11 @@ enum ListStyleType {
421432 DECIMAL ,
422433}
423434
435+ enum ListStylePosition {
436+ OUTSIDE ,
437+ INSIDE ,
438+ }
439+
424440enum VerticalAlign {
425441 BASELINE ,
426442 SUB ,
0 commit comments