搜索插件、代码仓与 APP 分类

suggest_a_feature 封面
插件详情v0.6.0

suggest_a_feature

现成的 Flutter 包,用于收集用户的建议。

AndroidiOSmacOSWindowsLinux
近 30 天下载
96
喜欢数
24
Pub 分数
150

安装插件

flutter pub add suggest_a_feature

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个现成的 Flutter 包,旨在帮助开发者在应用内直接收集用户建议。它提供了一个简单且可自定义的界面,让用户提交反馈和功能想法,简化了获取洞察的过程。该包支持跨平台,可在 Android、iOS、macOS、Windows 和 Linux 上无缝运行。对于希望借助用户驱动输入来改进应用的开发者来说,这是一个理想选择,提供了便捷的方式让用户体验产品开发过程。通过 pub add 轻松集成,并提供 GitHub 上的源代码以确保透明度和可定制性。

适合场景

  • 收集用户反馈
  • 收集功能请求
  • 提高应用程序的可用性
  • 提升用户参与度
  • 支持产品路线图规划

主要特点

  • 预构建建议表单
  • 跨平台兼容性
  • 通过 pub 轻松集成
  • 可自定义的用户界面
  • 开源代码库

适合对象

  • 寻求用户反馈的开发者
  • 专注于持续改进的应用程序
  • 使用敏捷开发的团队
  • 产品管理人员跟踪功能想法
  • 开源项目

使用建议

  • 需要自定义后端来存储建议
  • 仅限前端反馈收集
  • 可能需要额外的验证逻辑
  • 不适合实时协作
  • 设计可能需要品牌调整

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Suggest a Feature

What the Flutter

Crafted with passion by What the Flutter 🦜

Pub Build Status CodeFactor


This Flutter package is a ready-made module which allows other developers to implement additional menu in their own mobile app where users can share their suggestions about the application in real time, discuss them with others, and vote for each other's suggestions.

You can check interactive example here.

A small demo:

Usage

At first, you need to implement SuggestionsDataSource. This is an interface which we use to handle all the data-layer logic. There you can add the connection to your DB.

If you use firestore as a data source, you can use our ready-made implementation Suggest a feature Firestore.

Then you need to move the SuggestionsPage. For example:

Navigator.of(context).push(
  MaterialPageRoute(
    builder: (context) => SuggestionsPage(
      userId: '1',
      suggestionsDataSource: MyDataSource(
        userId: '1',
      ),
      theme: SuggestionsTheme.initial(),
      onUploadMultiplePhotos: null,
      onSaveToGallery: null,
      onGetUserById: () {},
    ),
  ),
);

If you want to give a user the ability to attach photos to suggestions and save them to the gallery, you just need to implement the onUploadMultiplePhotos and onSaveToGallery methods.

You can also either use our standard theme or create your own:

theme: SuggestionsTheme().copyWith(...),

Admin functionality

Admin functionality allows you to edit any suggestion (e.g change its' status) and to leave comments from the 'Admin'.

A small demo:

In order to enable admin functionality, you should specify the adminSettings and set isAdmin to true:

SuggestionsPage(
  isAdmin: true,
  adminSettings: const AdminSettings(
    id: '3',
    username: 'Admin',
  ),
);

Localization

At the moment the package supports 3 languages: English, Russian and Ukrainian. English is the default language, it will be set in case the current locale is not supported by the SuggestionsLocalizations.delegate.

MaterialApp(
  home: SuggestionsPage(),
  localizationsDelegates: [
    SuggestionsLocalizations.delegate,
    GlobalMaterialLocalizations.delegate,
  ],
);
  • SuggestionsLocalizations - strings localization
  • GlobalMaterialLocalizations- date format localization

You also have to invoke initializeDateFormatting() before MaterialApp() widget creation in order to support date formatting.

initializeDateFormatting();
return MaterialApp(
  home: SuggestionsPage(),
);

Essential checks

For each suggestion and comment manipulation (updating or deleting) we recommend to check whether user has author rights to commit those actions. Author rights concept is as follows: the user who has created a suggestion/comment is the only one who can delete or update it. If it somehow happens that a user without author rights tries to delete/update a suggestion, an Exception will be thrown. onGetUserById() function in SuggestionsPage constructor will help you with this.

Theme

The package uses the material theme of your application.

Text styles used in package:

  • TextTheme.titleLarge
  • TextTheme.titleMedium
  • TextTheme.labelLarge
  • TextTheme.bodyMedium

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

暂无相关数据。