Quickblox User Management in Flutter

Photo from Unsplash

Hello all, In this blog, we will be looking into updating, retrieving users by Tag, and even updating the user profile pic and getting the users from the Quickblox after the user's account is created. Let’s get started.

Just a quick note, this blog is a continuation of Authentication in Quickblox in Flutter. Here's the link to that blog.

Retreive Users from QuickBlox

To get all the users from your QuickBlox application. You need to simply call the getUsers method in QB.users. If you want to apply any condition based on arrangement or filtration.

You need to use QBSort() for sorting the list of users according to your need.

QBUsersSortFields contains different attributes of QBUser and below in QBUsersSortTypes, we need to specify the type of QBUserSortFields we are selecting.

Retrieve Users by Tag

To get all the users based on the tags they have we need to call this QB.users.getUsersByTag method which gives a List of QBUser data.

Update User Data

You can even pass more additional value in QB.users.updateUser method but for now this data is enough for updating.

You can pass these many options if you need to update some other record.

Upload Profile Photo

We can even upload our profile pic in Quickblox. For Uploading image we need to pass the path of the image in the QB.content.upload method and we get a file of QBFile from this we get the blob ID and need to update the user.

Getting Profile Image Url

Pass the blob id in QB.content.getInfo in this method and you will get a file from that you can retrieve the profile pic URL.

You can check the official Quickblox documentation for more detailed information

Outputs

Hurrah! and we are done with the User Management in Flutter. You can check my GitHub repository to have a more detailed view of this functionality and UI.

Do you know you can press the clap👏 button 50 times? The higher you go, the more it motivates me to write more stuff for you guys!
Hello, I am Agnel Selvan. A noob developer. You can find me on Linkedin or stalk me on GitHub.

--

--

--

I’m an IOS, Flutter Developer and now a Blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to add screen sharing to your Android app with Sendbird Calls

Motion layout profile picture animation

State Management With Provider

NEW IMOBA

How to Set Up Jenkins and Jenkins Pipeline with Android : Step-by-Step Guide (Part 1)

Flutter Boring Tab to Cool Tab

How to do widget properties testing in Flutter while you run E2E tests

Android One Piece, Sanji Overview

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Agnel Selvan

Agnel Selvan

I’m an IOS, Flutter Developer and now a Blogger

More from Medium

How to Configure Auto-Capitalization Behavior in Flutter’s Text Entry Fields?

Careem HomePage like Customized Carousel Slider in Flutter with controls

Why Flutter is the future of mobile app development

Why Flutter is the future of mobile app development

How to add launcher/app icons to flutter