flutter_ninepatch_image 1.0.2 copy "flutter_ninepatch_image: ^1.0.2" to clipboard
flutter_ninepatch_image: ^1.0.2 copied to clipboard

ninepatch image for Flutter. support image scale, can super 2x and 3x images.

Pub Version GitHub stars GitHub repo size Platforms

ninepatch image for Flutter #

TODO: flutter .9 image

Usage #

dependencies:
  flutter_ninepatch_image: ^1.0.0
final assetName = 'assets/test_ninepatch.9.png';
NinePatchImage(
    imageProvider: AssetImage(assetName),
    sliceCachedKey: assetName,
    scale: 3.0,
    alignment: Alignment.center,
    child: Text(
        'test',
        style: TextStyle(
            color: Colors.white,
            fontSize: 16,
        ),
    ),
);

Screenshot :
Screenshot

2
likes
160
points
80
downloads

Publisher

unverified uploader

Weekly Downloads

ninepatch image for Flutter. support image scale, can super 2x and 3x images.

Repository (GitHub)
View/report issues

Topics

#ninepatch #nine #ninepatch-image #nine-slicing #slicing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, image_pixels

More

Packages that depend on flutter_ninepatch_image