flyerhq / flutter_link_previewer

Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
MIT License
72 stars 75 forks source link

simple previewer with only text not working in latest builds #31

Closed sajanyamaha closed 2 years ago

sajanyamaha commented 2 years ago

Am just providing a url to previewer , which used to work in ealier versions , to be exact it was working in Ver 1.0.4 , now with latest version its only showing a link text .

                                     LinkPreview(
                                        text: urltxt ,
                                        width:MediaQuery.of(context).size.width,
                                      ),  

its placed inside a list builder . Any thoughts ?

Flutter 2.6.0-6.0.pre.83 • channel master • https://github.com/flutter/flutter.git
Framework • revision b889915997 (19 hours ago) • 2021-09-14 14:08:36 +0200
Engine • revision abb1980f65
Tools • Dart 2.15.0 (build 2.15.0-96.0.dev)
demchenkoalex commented 2 years ago

Please read a changelog or check the README. This is now a controlled widget and you need to store the preview data somewhere, and provide it back.