パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリTheAlphamerc/app_feedback

app_feedback

ユーザーからのアプリフィードバックを取得するためのFlutterパッケージ。

app_feedback のプロジェクト画像
スター
13
フォーク
7
最終プッシュ(UTC)
2021/10/11
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

App Feedback

Open Source Love Hits GitHub last commit GitHub code size in bytes GitHub stars GitHub forks

pub package Likes Popularity Pub points

A Flutter package for getting app feedback from users. It provides the utility to display feedback form depending upon the requirement. Feedback form can be displayed instantly at any time or after certain period of time.

Download Demo App GitHub All Releases

How to use this package

1. Add library to pubspec.yml
dependencies:
  app_feedback: ^0.0.2
2. Import library in dart file.
import 'package:app_feedback/app_feedback.dart';
3. Create a instance of AppFeedback
AppFeedback feedbackForm = AppFeedback.instance;
4. Initialize the app feedback (Ony if you want to ask user for his feedback periodically)
 @override
  void initState() {
    /// `duration` is set to 10 seconds for testing purpose.
    /// Change this duration on the basis of how often you want to ask user for his feedback.
    /// For example duration can be 15 days, 1 or 2 month etc.
    feedbackForm.init(FeedbackConfig(duration: Duration(seconds: 10)));
    super.initState();
  }
5. Create a method which will launch the feedback form
 void tryDisplay() {
    feedbackForm.tryDisplay(context, onSubmit: (UserFeedback feedback) {
      print(feedback);
    });
  }
6. Create a button to call tryDisplay method.
TextButton(
    onPressed: tryDisplay,
    child: Text("Try Display Form")
 ),

Note

  1. feedbackForm will only be displayed once provided duration in step 3 has passed.
  2. Once feedbackForm is displayed then it won't be displayed until the next cycle of the duration is completed.
  3. The config data provided in first time initialization of feedbackForm is stored in local cache and other initialization data will be ignored.
7. Clear old configuration

Invoke clearConfig method only if there is a need to clear the old config values otherwise ignore this.

  void clearConfig() async {
    await feedbackForm.clearConfig();
 }

Note

  1. After clearing the configuration it won't be display the feedback form ever until new initialization.
  2. Clear configuration form doesn't mean reset the duration cycle. It just removes the all configuration from the cache.
  3. To reset duration and other configuration do call the feedbackForm.init() method with new config values.
Display instant feedbackForm

If there is a need to display feedbackForm instantly on any time then invoke feedbackForm.display method. By calling this method won't reset the duration cycle provided in above step 3. To invoke below method there is no need to initialize the feedbackForm.

void launchAppFeedback() {
    feedbackForm.display(context,
        option: Option(
          maxRating: 10,
          ratingButtonTheme: RatingButtonThemeData.defaultTheme,
        ), onSubmit: (feedback) {
      print(feedback);
    });
  }
Feedback form Customised Rating button Customised Rating button
Hidden feedback field Customised feedback form Customised feedback form

Other Flutter packages

Name Stars Pub
Filter List GitHub stars pub package
Empty widget GitHub stars pub package
Add Thumbnail GitHub stars pub package
Country Provider GitHub stars pub package

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request.

Created & Maintained By

Sonu Sharma (Twitter) (Youtube) (Insta) Twitter Follow

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

Visitors Count

Loading
Sonu Sharma GitHub avatar
GitHub 作者

Sonu Sharma ↗

Tech enthusiast | Building solutions | Team player | Looking for new opportunities

New Delhi, India公式サイト ↗
言語DartHTMLKotlin

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗