fivestar_support library

FiveStar Support Flutter SDK

Simplified SDK for integrating FiveStar Support feedback collection into Flutter applications.

Example:

import 'package:fivestar_support/fivestar_support.dart';

final client = FiveStarClient(FiveStarClientConfig(
  clientId: 'your-client-uuid',
  platform: 'flutter',
  appVersion: '1.0.0',
));

// Generate a customer ID from the server
final result = await client.generateCustomerId();
final customerId = result.customerId;

// Register the customer
await client.registerCustomer(
  customerId,
  RegisterCustomerOptions(email: 'user@example.com', name: 'John Doe'),
);

// Submit feedback
final types = await client.getResponseTypes();
await client.submitResponse(SubmitResponseOptions(
  customerId: customerId,
  title: 'Feature request',
  description: 'Please add dark mode',
  typeId: types[0].id,
));

Classes

CustomerInfo
Customer information
FiveStarClient
FiveStar Support Client
FiveStarClientConfig
Configuration for the FiveStar Support client
GenerateCustomerIdResult
Result of generating a customer ID from the server
RegisterCustomerOptions
Options for registering a customer
RegisterCustomerResult
Result of registering a customer
ResponseType
Response type (bug, feature request, etc.)
SubmitResponseOptions
Options for submitting a response
SubmitResponseResult
Result of submitting a response
VerifyCustomerResult
Customer verification result