santa112358 / hashtagable

Widgets and functions to implement hashTag decorated text.
https://pub.dev/packages/hashtagable
MIT License
30 stars 50 forks source link

feature request : Please add read more/less #98

Open mmshahshahani opened 2 years ago

mmshahshahani commented 2 years ago

Hi I use a package in my flutter project to show "read more/less" in case of long texts . This package do not accept hashtagable package for it's Text property and show an error . I used hashtagable like this

                                 HashTagText(
                                      text: homeController
                                          .posts[index].postCaption,
                                      decoratedStyle: TextStyle(
                                        fontSize: 22,
                                        color: Colors.red,
                                      ),
                                      basicStyle: TextStyle(
                                        fontSize: 22,
                                        color: Colors.black,
                                      ),
                                      onTap: (text) {
                                        print(text);
                                      },
                                    ).text,

but this time hashtags did not recognize .

Please add read more/less feature to your useful package .

Ch4rl3B commented 1 year ago

Hi. I've created this Pull Request for this requirement. I hope @santa112358 approves and merge it 👍🏼