image_in_text 1.0.0

Flutter Android iOS

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

2
likes
80
pub points
11%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

vikram25897@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter, text_to_path_maker

More

Packages that depend on image_in_text