v0.2.1link_text
Widget de texto fácil de usar para aplicativos Flutter, que converte URLs embutidas em links clicáveis. Permite estilos personalizados.
Widget de texto fácil de usar para aplicativos Flutter, que converte URLs embutidas em links clicáveis funcionais
Texto original em inglês. Visite o GitHub para a versão atual.
Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.
LinkText widget does not require any setup. Simply pass a String with inlined URLs, and the widget will take care of the rest.
final String _text = 'Lorem ipsum https://flutter.dev\nhttps://pub.dev';
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: LinkText(
_text,
textAlign: TextAlign.center,
// You can optionally handle link tap event by yourself
// onLinkTap: (url) => ...
),
),
);
}
Add to pubspec.yaml:
dependencies:
link_text: ^0.2.1
For more info, check out example project.
Lista de dependências 3 itens
{"sdk":"flutter"}^6.2.4{"sdk":"flutter"}Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗