codifyiq_terms_and_conditions 1.1.0 copy "codifyiq_terms_and_conditions: ^1.1.0" to clipboard
codifyiq_terms_and_conditions: ^1.1.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:flutter/material.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,
);

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

0
likes
160
points
104
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

More

Packages that depend on codifyiq_terms_and_conditions