image_in_text 1.0.0 copy "image_in_text: ^1.0.0" to clipboard
image_in_text: ^1.0.0 copied to clipboard

A new Flutter package that creates image in text effect. It works in all flutter platforms including web.

image_in_text #

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:

import 'package:image_in_text/image_in_text.dart';';

Initialize the library with a TTF file:

    await init("assets/Roboto-Regular.ttf", isAsset: true);

Note: If you are calling init from main, remember to add this line before calling init:

WidgetsFlutterBinding.ensureInitialized();

Now You can just use the widget ImageInText:

    Center(
      child: ImageInText(
        text: "LAZY",
        boxFit: BoxFit.contain,
        image:  AssetImage(
            "assets/bg.jpg"
        ),
      ),
    ),

And it would look something like this: Screenshot

5
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package that creates image in text effect. It works in all flutter platforms including web.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter, text_to_path_maker

More

Packages that depend on image_in_text