forked from Nexus/nexus
treewide sweepfixes
This commit is contained in:
parent
8fda43ccf8
commit
012ecd9249
41 changed files with 270 additions and 386 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import "package:collection/collection.dart";
|
||||
import "package:material_ui/material_ui.dart";
|
||||
|
||||
class const GenericEventRenderer(
|
||||
|
|
@ -17,12 +18,14 @@ class const GenericEventRenderer(
|
|||
Flexible(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
for (final (index, child) in children.indexed) ...[
|
||||
if (index > 0) TextSpan(text: " "),
|
||||
child,
|
||||
],
|
||||
],
|
||||
children: children
|
||||
.expandIndexed(
|
||||
(index, child) => [
|
||||
if (index > 0) TextSpan(text: " "),
|
||||
child,
|
||||
],
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
maxLines: maxLines ?? 999,
|
||||
overflow: .ellipsis,
|
||||
|
|
|
|||
Loading…
Reference in a new issue