hashtagtext 0.0.1 hashtagtext: ^0.0.1 copied to clipboard
HashTagText will detect all hastags in string.
import 'package:flutter/material.dart';
import 'package:hashtagtext/hashtagtext.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Center(child: HashTagText(text: "I will found and #highlight all #tag and #make it #clickable", onHashTagClick: (tag){
print("You clicked on $tag");
},),),
),
),
),
);
}
}