easy_user_group 0.0.1 copy "easy_user_group: ^0.0.1" to clipboard
easy_user_group: ^0.0.1 copied to clipboard

An easy to use user group management package with Firebase as backend.

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);
  • Remove a user from the user list
await UserGroup.remove(otherUid: 'uid');

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');

display the details #

  • To display the details
    • The details screen display not only the user list of accepted, pending, declined.
UserGroupService.instance.showDetailScreen();
  • This has a tab of accept, pending, decliend list.
    • with appropriate menus;
1
likes
150
points
24
downloads

Publisher

verified publishersonub.com

Weekly Downloads

An easy to use user group management package with Firebase as backend.

Homepage
Repository (GitHub)
View/report issues

Topics

#user #user-management #user-management-system #firebase #easy-packages

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on easy_user_group