Skip to main content

codifyiq_terms_and_conditions 2.0.0 copy "codifyiq_terms_and_conditions: ^2.0.0" to clipboard
codifyiq_terms_and_conditions: ^2.0.0 copied to clipboard

A scrollable terms-and-conditions widget with Markdown rendering and a scroll-gated acceptance button.

example/README.md

codifyiq_terms_and_conditions example #

import 'package:codifyiq_terms_and_conditions/codifyiq_terms_and_conditions.dart';
import 'package:material_ui/material_ui.dart';

Widget buildTerms(BuildContext context) {
  return TermsAndConditionsWidget(
    headerText: 'Terms of Service',
    onAccepted: () => Navigator.of(context).pop(true),
  );
}

The acceptance button is disabled until the terms are scrolled to the end, and whenever onAccepted is null. While the acceptance is being recorded, set isProcessing to disable the button and show a progress indicator:

TermsAndConditionsWidget(
  isProcessing: _isRecording,
  onAccepted: _recordAcceptance,
);

Its two labels default to 'Read to accept' and 'Accept', and can be replaced to localize them or to use your own assent wording:

TermsAndConditionsWidget(
  readPromptLabel: 'Lire pour accepter',
  acceptLabel: 'Accepter',
  onAccepted: _recordAcceptance,
);

For re-acceptance of a revised document, pass changesSummary to open on a "What's changed" card with the full terms one tap away, and name the terms in the button label:

TermsAndConditionsWidget(
  termsContent: updatedTerms,
  changesSummary: 'We now keep usage logs for 30 days instead of 90.',
  acceptLabel: 'I agree to the updated terms',
  onAccepted: _recordAcceptance,
);

A runnable catalog demonstrating every CodifyIQ component lives in the example/ app at the repository root.

0
likes
160
points
230
downloads

Documentation

API reference

Publisher

verified publishercodifyiq.com

Weekly Downloads

A scrollable terms-and-conditions widget with Markdown rendering and a scroll-gated acceptance button.

Repository (GitHub)
View/report issues

Topics

#codifyiq #ui #widget #markdown

License

MIT (license)

Dependencies

flutter, gpt_markdown, material_ui

More

Packages that depend on codifyiq_terms_and_conditions