Linklytics Feedback

A Flutter package for collecting user feedback with customizable UI and easy integration. This package provides a simple and elegant way to gather user feedback in your Flutter applications.

Features

  • 🎨 Customizable UI: Customize the feedback form appearance and text
  • 🚀 Easy Integration: Simple API with minimal setup required
  • 📱 Flutter Native: Built specifically for Flutter applications
  • 🔧 Flexible Navigation: Support for custom navigation patterns
  • 🌐 API Integration: Built-in API service for sending feedback data
  • 📦 Lightweight: Minimal dependencies and small package size

Getting started

Add this to your package's pubspec.yaml file:

dependencies:
  linklytics_feedback: ^0.0.1

Then run:

flutter pub get

Usage

Basic Usage

import 'package:linklytics_feedback/linklytics_feedback.dart';

// Initialize the feedback service
final feedback = LinklyticsFeedback();

// Open feedback form
await feedback.openFeedback(
  apiKey: 'your-api-key-here',
);

Custom Navigation

await feedback.openFeedback(
  apiKey: 'your-api-key-here',
  customNavigation: (widget) => Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => widget),
  ),
);

Custom Strings

import 'package:linklytics_feedback/linklytics_feedback.dart';

await feedback.openFeedback(
  apiKey: 'your-api-key-here',
  feedbackStrings: const FeedbackStrings(
    title: 'Send Feedback',
    subtitle: 'Help us improve our app',
    // ... other custom strings
  ),
);

API Reference

LinklyticsFeedback

The main class for handling feedback functionality.

Methods

  • openFeedback({required String apiKey, NavigateCallback? customNavigation, FeedbackStrings? feedbackStrings})
    • Opens the feedback form
    • apiKey: Your API key for the feedback service
    • customNavigation: Optional custom navigation callback
    • feedbackStrings: Optional custom strings for the UI

FeedbackStrings

Customizable strings for the feedback form UI.

Additional information

For more information about this package, visit the GitHub repository.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Issues

If you encounter any issues or have feature requests, please file them on the GitHub issues page.

License

This project is licensed under the MIT License - see the LICENSE file for details.