super_interactive_text 1.1.0
super_interactive_text: ^1.1.0 copied to clipboard
A powerful Flutter package for parsing and displaying text with interactive links, emails, phone numbers, usernames, hashtags, social media links, and internal app routes.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.0 - 2026-01-04 #
Added #
- Flexible Routing System: Introduced
RouteConfigandRouteDefinitionto allow fully customizable internal route parsing. SuperInteractiveTextDataParser.configure(RouteConfig): Method to initialize the parser with custom route patterns.onNavigateparameter inRouteDefinition: Callback to handle navigation logic (e.g.,Navigator.pushNamed) when a route is tapped.RouteTextData.navigate(BuildContext): Method to trigger the navigation callback.RouteTextData.routeDefinition: Reference to the matched route definition.
Changed #
- Breaking Change: Removed the hardcoded
RouteTypeenum andRouteTextData.routeType. - Breaking Change:
RouteTextDataconstructor now requiresRouteDefinitioninstead ofRouteType. SuperInteractiveTextPreviewwidget now passesBuildContextto_handleRouteTapto supportonNavigate.RouteTextDataserializes/deserializes using the configuredRouteConfigto look up route definitions by name.
Removed #
- Static hardcoded route patterns in
SuperInteractiveTextDataParser.
1.0.0 - 2026-01-04 #
Added #
- Initial release of the super_interactive_text package
SuperInteractiveTextPreviewfor displaying text with interactive elementsSuperInteractiveTextPreview.builderfor custom widget buildingTextDataclass hierarchy for different text types:NormalTextData- Regular textLinkTextData- HTTP/HTTPS URLsEmailTextData- Email addressesPhoneNumberTextData- Phone numbersUsernameTextData- @usernamesHashtagTextData- #hashtagsSocialMediaTextData- Social media links (Instagram, Twitter, Facebook, YouTube, etc.)RouteTextData- Internal app routes
TextPreviewThemefor customizing appearance- Light and dark theme support
- Phone number validation and formatting (with Saudi number support)
- Social media platform detection
- Internal route parsing with path parameters
- Caching support for parsed text
- Serialization support (toMap/fromMap)