text_link 0.0.11 text_link: ^0.0.11 copied to clipboard
This Flutter package is designed to simplify text rendering with embedded URLs. It allows users to tap on any URL in the text (even at the beginning, end, or if the URL format is incorrect) to open the link.
import 'package:flutter/material.dart';
import 'package:text_link/text_link.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Text Link',
home: Scaffold(
appBar: AppBar(
title: const Text('Text Link'),
),
body: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
LinkText(
text: "Check out https://www.void.krd for more information.",
)
],
),
),
),
);
}
}