truconsent_consent_notice_flutter 0.1.2 copy "truconsent_consent_notice_flutter: ^0.1.2" to clipboard
truconsent_consent_notice_flutter: ^0.1.2 copied to clipboard

Flutter SDK for TruConsent consent banner. This package provides native Flutter widgets for displaying and managing consent banners in Flutter applications.

truconsent_consent_notice_flutter #

Flutter SDK for TruConsent consent banner. This package provides native Flutter widgets for displaying and managing consent banners in Flutter applications.

Installation #

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

dependencies:
  truconsent_consent_notice_flutter: ^0.1.2

Then run:

flutter pub get

Usage #

import 'package:truconsent_consent_notice_flutter/truconsent_consent_banner_flutter.dart';

TruConsentModal(
  apiKey: 'your-api-key',
  organizationId: 'your-org-id',
  bannerId: 'your-banner-id',
  userId: 'user-id',
  onClose: (action) {
    print('Consent action: $action');
  },
)

API #

TruConsentModal #

Main widget for displaying the consent banner modal.

Parameters

  • apiKey (String, required): API key for authentication
  • organizationId (String, required): Organization ID
  • bannerId (String, required): Banner/Collection Point ID
  • userId (String, required): User ID for consent tracking
  • apiBaseUrl (String, optional): Base URL for API
  • logoUrl (String, optional): Company logo URL
  • companyName (String, optional): Company name
  • onClose (Function, optional): Callback when modal closes

Version History #

0.1.1 (Latest) #

  • Fixed code warnings and linter issues
  • Replaced deprecated withOpacity() with withValues(alpha:)
  • Replaced deprecated activeColor with activeThumbColor
  • Added comprehensive dartdoc comments to public API (20%+ coverage)
  • Fixed dangling library doc comments
  • Improved code quality and static analysis scores

0.1.0 #

  • Initial release of TruConsent Flutter SDK
  • Native Flutter widgets for consent banner display
  • TruConsentModal widget for modal-based consent collection
  • NativeRightCenter widget for Rights Center functionality
  • Support for multiple languages (English, Hindi, Tamil)
  • Consent management and tracking
  • Integration with TruConsent API
  • Support for GDPR and privacy compliance features

License #

MIT

0
likes
135
points
20
downloads

Documentation

API reference

Publisher

verified publishertruconsent.io

Weekly Downloads

Flutter SDK for TruConsent consent banner. This package provides native Flutter widgets for displaying and managing consent banners in Flutter applications.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_localizations, http, intl, provider, url_launcher, uuid, webview_flutter

More

Packages that depend on truconsent_consent_notice_flutter