Easy User Group | Coderz Repository

easy_user_group

Last updated:

0 purchases

easy_user_group Image
easy_user_group Images

Free

Languages

Categories

Add to Cart

Description:

easy user group

Easy user group #
This package helps to grouping users using Firestore.
Overview #

The user must sign-in first before using any of the user group functionality. Or it may throw exception.

Installation #

Add the easy_user_group package as the dependency of your app.

Database structure #


It uses Firestore.


/user-group: the user group collection


/user-group/<group-id>: the document that has the group information.


Fields #


uid: the user uid of the owner.


createdAt: the date time of creation


updatedAt: ..


users: users who accepted.


pendingUsers: who didn't decided for accept or rejection.


declinedUsers: who rejected the invitation.


Developer's guideline #

It uses easyuser for searching users.

How to use #
invite user #

Invite a user

final user = await UserService.instance.showSearchDialog();
await UserGroup.invite(otherUid: user.uid);
copied to clipboard

Remove a user from the user list

await UserGroup.remove(otherUid: 'uid');
copied to clipboard
re-invite #


Use case:

If the user declined, the moderator can invite again.



Re-invite a user

This remove the user from declined list and add to pending list.



await UserGroup.inviteAgain(otherUid: 'uid');
copied to clipboard
display the details #

To display the details

The details screen display not only the user list of accepted, pending, declined.



UserGroupService.instance.showDetailScreen();
copied to clipboard

This has a tab of accept, pending, decliend list.

with appropriate menus;

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.