easy_report 0.0.2 easy_report: ^0.0.2 copied to clipboard
An easy report management system for various type of data for Flutter and Firebase
Easy Report #
easy_report
package provides an easy way of reporting and managing users, posts, comments, photos, chat, and whatsoever.
It also provides a way of listing and blocking users.
TODO #
- Let admin list the reported users and their contents. And decide to block(disbable) their account. So that they cannot use the app.
Concept #
-
It does not require typing to avoid the inconveniencing the user. Instead, it ask users to press a button for the reason of the report. And it offers three options.
Spam
,Abusive
,Other
and I think these are enough. -
It saves the user's uid and the document reference of the reporting. The document may be in any form (containing any fields).
-
In admin screen, it displays the texts and uploads on the screen and let the admin choose to block the user or not.
How to use #
Displaying a report button #
You can display report button like this. And call the report
method.
TextButton(
onPressed: () async {
await ReportService.instance.report(
context: context,
otherUid: user.uid,
documentReference: user.ref,
);
},
child: const Text('Report'),
),
Displaying the list of blocks #
You can display the list of blocked users.
ElevatedButton(
onPressed: () =>
ReportService.instance.showReportListScreen(context),
child: const Text(
'Report list',
),
),
UI/UX customization #
It's open source. You can simply open the source code of this package and copy/paste/edit the code. The code would be easy enough to re-use.