A new Flutter package that creates image in text effect. It works in all flutter platforms including web.
A new Flutter package that creates image in text effect.
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies: ... image_in_text: "1.0.0"
In your library add the following import:
Initialize the library with a TTF file:
await init("assets/Roboto-Regular.ttf", isAsset: true);
Note: If you are calling
main, remember to add this line before calling
Now You can just use the widget
Center( child: ImageInText( text: "LAZY", boxFit: BoxFit.contain, image: AssetImage( "assets/bg.jpg" ), ), ),
And it would look something like this: