interactive_text_plus Flutter Package

A Flutter package for rendering interactive text with support for clickable phone numbers, email addresses, and URLs. This package simplifies handling these elements, enabling seamless interactions like dialing phone numbers, sending emails, or opening web links.

Run the following command to install the package:

flutter pub add interactive_text_plus

Usage

Basic Example

To display interactive text, simply use the InteractiveTextScreen widget and pass the text as a parameter.

import 'package:flutter/material.dart';
import 'package:interactive_text/interactive_text.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: InteractiveTextScreen(
        description: "Contact us at example@example.com or call 123-456-7890. Visit https://example.com",
      ),
    );
  }
}

Customization

You can further customize the style of the clickable items by modifying the TextStyle in the _buildTextSpan method in the package's source code.

Supported Platforms

  • Android
  • iOS
  • Web
  • Windows
  • macOS
  • Linux

License

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

Contributing

We welcome contributions to this project! Please feel free to fork the repository, submit issues, or create pull requests.

To contribute:

  • Fork the repository.
  • Create a new branch for your feature or bugfix.
  • Write tests for your code.
  • Make sure your code adheres to the existing coding standards.
  • Submit a pull request with a clear description of your changes.

Contact

For any inquiries, feel free to contact me:

Libraries

interactive_text