mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
chore: Load hero users for rooms
This commit is contained in:
parent
26c637135a
commit
d0e4aec4d6
1 changed files with 189 additions and 186 deletions
|
@ -175,7 +175,9 @@ class ChatListItem extends StatelessWidget {
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
child: ListTile(
|
child: FutureBuilder(
|
||||||
|
future: room.loadHeroUsers(),
|
||||||
|
builder: (context, snapshot) => ListTile(
|
||||||
visualDensity: const VisualDensity(vertical: -0.5),
|
visualDensity: const VisualDensity(vertical: -0.5),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
onLongPress: onLongPress,
|
onLongPress: onLongPress,
|
||||||
|
@ -375,6 +377,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue