refactor: push method as extension

This commit is contained in:
Rongjian Zhang
2022-09-23 01:50:45 +08:00
parent 988cdbfe45
commit cf6871ce20
28 changed files with 57 additions and 76 deletions

View File

@@ -30,7 +30,6 @@ AntListItem createObjectTreeItem({
}) {
return AntListItem(
prefix: _buildIcon(type, name),
child: Text(name),
extra: size == null ? null : Text(filesize(size)),
onClick: () async {
final finalUrl = [
@@ -51,5 +50,6 @@ AntListItem createObjectTreeItem({
await launchStringUrl(finalUrl);
},
arrow: size == null ? const Icon(AntIcons.rightOutline) : null,
child: Text(name),
);
}