A Text Controller that can extract hashtags from the input text.
Getting started
- Import the package
import 'package:flutter_hashtags/flutter_hashtags.dart';
- Use it on your TextField or TextFormField.
final textController = HashtagTextController();
TextField(
controller: textController,
);
- Extract the hashtags using the controller.
List<String> hashtags = textController.hashtags;
Additional information
Feel free to contibute with the package :)