work
This commit is contained in:
@@ -9,11 +9,8 @@ class PickerResultWidget extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StreamBuilder(
|
||||
stream: controller.pickResult.map((FilamentEntity? entityId) {
|
||||
if (entityId == null) {
|
||||
return null;
|
||||
}
|
||||
return controller.getNameForEntity(entityId);
|
||||
stream: controller.pickResult.map((result) {
|
||||
return controller.getNameForEntity(result.entity);
|
||||
}),
|
||||
builder: (ctx, snapshot) => snapshot.data == null
|
||||
? Container()
|
||||
|
||||
Reference in New Issue
Block a user