flutter_linkable_text 1.0.2 flutter_linkable_text: ^1.0.2 copied to clipboard
A Flutter package to convert normal Text widget to RichText widget with links, email address and phone numbers.
Convert a normal Text widget to RichText widget, change the color of links, email addresses, phone numbers to blue and add a tap gesture to them.
Usage #
Add package to pubspec.yaml
file.
dependencies:
flutter_linkable_text: ^latest
Import package to code file.
import 'package:flutter_linkable_text/flutter_linkable_text.dart';
Example #
Use as a normal widget:
Container(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: FLTTextFunctions.convertToRichText(inputText),
)