wiredashio / wiredash-sdk

Interactive user feedback tool for Flutter 🎉
https://pub.dev/packages/wiredash
Other
514 stars 66 forks source link
analytics feedback flutter nps

Wiredash SDK for Flutter

Pub Build Pub Likes Popularity Pub points Website

wiredash.com | Console | Pub | Documentation | Get Started

Wiredash Logo

From members of the Flutter Community 💙 for the Flutter Community 💙

3-Minute Quick Start

It takes less than 180 seconds to integrate Wiredash in your existing app 🚀
Visit docs.wiredash.com for the in-depth guide and additional info.

1. Create an account and project

Start by visiting the Wiredash Console: Wiredash Console. Create your free account using Google or GitHub or request an email sign-in link.

Then create a project with a descriptive name.

2. Add Wiredash to your pubspec.yaml

$ flutter pub add wiredash:^2.3.0
dependencies:
  flutter:
    sdk: flutter
  ...
  wiredash: ^2.3.0

3. Wrap your root widget with Wiredash

Wrap the root widget of your existing app with Wiredash and make sure to fill in the projectId and SDK secret from the Wiredash Console > Your project > Settings > General Settings.

import 'package:flutter/material.dart';
import 'package:wiredash/wiredash.dart';

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Wiredash(
      projectId: 'YOUR-PROJECT-ID',
      secret: 'YOUR-SECRET',
      child: MaterialApp(
        // Your Flutter app is basically Wiredash's direct child.
        // This can be a MaterialApp, WidgetsApp or whatever widget you like.
      ),
    );
  }
}

That's already it. Yes, it's really that easy.

4. (Optional) More features

Launch the feedback flow

Call the Wiredash.of(context).show() method from anywhere in your app to launch the Wiredash Feedback flow.

FloatingActionButton(
  onPressed: () {
    Wiredash.of(context).show(inheritMaterialTheme: true);
  },
  child: Icon(Icons.feedback_outlined),
),

Checkout examples/theming for the full example or head to the documentation for more info.

Launch the Promoter Score Survey

FloatingActionButton(
  onPressed: () {
  Wiredash.of(context).showPromoterSurvey(force: true);
  },
  child: Icon(Icons.feedback_outlined),
),

Checkout examples/promoter_score for the full example or head to the documentation for more info.

License

The Wiredash SDK is released under the Attribution Assurance License which is redundant with BSD. See LICENSE for details.