ZEGOCLOUD / zego_uikit_prebuilt_call_flutter

MIT License
17 stars 17 forks source link

How can get custom data in ui config ? #64

Closed atul-techbuilders closed 2 months ago

atul-techbuilders commented 2 months ago

Hey i have create custom call widget for incoming and outgoing call so i want get custom data to show respective avatar based on gender so how can i get in code . uiConfig: ZegoCallInvitationUIConfig( inviter: ZegoCallInvitationInviterUIConfig( pageBuilder: (context, info) { return CustomCallWidget( info: info, onHangup: () async { log('on Hangup '); await ZegoUIKitPrebuiltCallInvitationService().cancel( callees: [ZegoCallUser.fromUIKit(info.invitees.first)]); }, ); }, ), invitee: ZegoCallInvitationInviteeUIConfig(pageBuilder: (context, info) { return CustomCallWidget( info: info, onAccept: () async { log('accept call'); await ZegoUIKitPrebuiltCallInvitationService().accept(); }, isOutgoingCall: false, onHangup: () async { log(' hangup for incoming call'); await ZegoUIKitPrebuiltCallInvitationService().reject(); }); })),

yoer commented 2 months ago

next version will provide custom data with info.customData of xxBuilder in uiConfig

yoer commented 2 months ago

today will publish this version

atulproject99 commented 2 months ago

Thanks and i am waiting @yoer

yoer commented 2 months ago

zego_uikit_prebuilt_call: ^4.15.13