quick_feedback 0.1.1 copy "quick_feedback: ^0.1.1" to clipboard
quick_feedback: ^0.1.1 copied to clipboard

Quick feedback allows to take feedback from users, also provides some customizations as required. Automatic show feedback dialog of respective platform.

example/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  void _showFeedback(context) {
    showDialog(
      context: context,
      builder: (context) {
        return QuickFeedback(
          title: 'Leave a feedback', // Title of dialog
          showTextBox: true, // default false
          textBoxHint:
              'Share your feedback', // Feedback text field hint text default: Tell us more
          submitText: 'SUBMIT', // submit button text default: SUBMIT
          onSubmitCallback: (feedback) {
            print('$feedback'); // map { rating: 2, feedback: 'some feedback' }
            Navigator.of(context).pop();
          },
          askLaterText: 'ASK LATER',
          onAskLaterCallback: () {
            print('Do something on ask later click');
          },
        );
      },
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Example App',
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text('Quick Feedback'),
        ),
        body: SingleChildScrollView(
          child: Container(
            child: Center(
              child: FlatButton(
                onPressed: () => _showFeedback(context),
                child: Text('Feedback'),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
6
likes
30
points
24
downloads

Publisher

verified publishersapidlabs.com

Weekly Downloads

Quick feedback allows to take feedback from users, also provides some customizations as required. Automatic show feedback dialog of respective platform.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, font_awesome_flutter

More

Packages that depend on quick_feedback