File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,7 @@ class StyledText extends StatelessWidget {
787
787
textAlign: style.textAlign,
788
788
textDirection: style.direction,
789
789
textScaleFactor: textScaleFactor,
790
+ maxLines: style.maxLine,
790
791
),
791
792
);
792
793
}
Original file line number Diff line number Diff line change @@ -175,6 +175,13 @@ class Style {
175
175
Alignment alignment;
176
176
String markerContent;
177
177
178
+ /// MaxLine
179
+ ///
180
+ ///
181
+ ///
182
+ ///
183
+ int maxLine;
184
+
178
185
Style ({
179
186
this .backgroundColor = Colors .transparent,
180
187
this .color,
@@ -207,6 +214,7 @@ class Style {
207
214
this .border,
208
215
this .alignment,
209
216
this .markerContent,
217
+ this .maxLine,
210
218
}) {
211
219
if (this .alignment == null &&
212
220
(display == Display .BLOCK || display == Display .LIST_ITEM )) {
@@ -280,6 +288,7 @@ class Style {
280
288
//TODO merge border
281
289
alignment: other.alignment,
282
290
markerContent: other.markerContent,
291
+ maxLine: other.maxLine,
283
292
);
284
293
}
285
294
@@ -347,6 +356,7 @@ class Style {
347
356
Border border,
348
357
Alignment alignment,
349
358
String markerContent,
359
+ int maxLine,
350
360
}) {
351
361
return Style (
352
362
backgroundColor: backgroundColor ?? this .backgroundColor,
@@ -381,6 +391,7 @@ class Style {
381
391
border: border ?? this .border,
382
392
alignment: alignment ?? this .alignment,
383
393
markerContent: markerContent ?? this .markerContent,
394
+ maxLine: maxLine ?? this .maxLine,
384
395
);
385
396
}
386
397
You can’t perform that action at this time.
0 commit comments