@@ -77,6 +77,12 @@ class Style {
77
77
/// Default: ListStyleType.DISC
78
78
ListStyleType listStyleType;
79
79
80
+ /// CSS attribute "`list-style-position` "
81
+ ///
82
+ /// Inherited: yes,
83
+ /// Default: ListStylePosition.OUTSIDE
84
+ ListStylePosition listStylePosition;
85
+
80
86
/// CSS attribute "`padding` "
81
87
///
82
88
/// Inherited: no,
@@ -183,6 +189,7 @@ class Style {
183
189
this .lineHeight,
184
190
this .letterSpacing,
185
191
this .listStyleType,
192
+ this .listStylePosition,
186
193
this .padding,
187
194
this .margin,
188
195
this .textAlign,
@@ -251,6 +258,7 @@ class Style {
251
258
lineHeight: other.lineHeight,
252
259
letterSpacing: other.letterSpacing,
253
260
listStyleType: other.listStyleType,
261
+ listStylePosition: other.listStylePosition,
254
262
padding: other.padding,
255
263
//TODO merge EdgeInsets
256
264
margin: other.margin,
@@ -288,6 +296,7 @@ class Style {
288
296
fontWeight: child.fontWeight ?? fontWeight,
289
297
letterSpacing: child.letterSpacing ?? letterSpacing,
290
298
listStyleType: child.listStyleType ?? listStyleType,
299
+ listStylePosition: child.listStylePosition ?? listStylePosition,
291
300
textAlign: child.textAlign ?? textAlign,
292
301
textShadow: child.textShadow ?? textShadow,
293
302
whiteSpace: child.whiteSpace ?? whiteSpace,
@@ -309,6 +318,7 @@ class Style {
309
318
double lineHeight,
310
319
double letterSpacing,
311
320
ListStyleType listStyleType,
321
+ ListStylePosition listStylePosition,
312
322
EdgeInsets padding,
313
323
EdgeInsets margin,
314
324
TextAlign textAlign,
@@ -341,6 +351,7 @@ class Style {
341
351
lineHeight: lineHeight ?? this .lineHeight,
342
352
letterSpacing: letterSpacing ?? this .letterSpacing,
343
353
listStyleType: listStyleType ?? this .listStyleType,
354
+ listStylePosition: listStylePosition ?? this .listStylePosition,
344
355
padding: padding ?? this .padding,
345
356
margin: margin ?? this .margin,
346
357
textAlign: textAlign ?? this .textAlign,
@@ -421,6 +432,11 @@ enum ListStyleType {
421
432
DECIMAL ,
422
433
}
423
434
435
+ enum ListStylePosition {
436
+ OUTSIDE ,
437
+ INSIDE ,
438
+ }
439
+
424
440
enum VerticalAlign {
425
441
BASELINE ,
426
442
SUB ,
0 commit comments