sprite_image 1.0.1 copy "sprite_image: ^1.0.1" to clipboard
sprite_image: ^1.0.1 copied to clipboard

A widget that renders a subpart of an image.

example/example.dart

import 'package:flutter/widgets.dart';
import 'package:sprite_image/sprite_image.dart';

Widget build(BuildContext context) {
  return Sprite.asset(
    'assets/sprite.png',
    source: Offset(24, 24) & Size(64, 64), // The subpart of the image to render
    width: 64,
    height: 64,
  );
}
0
likes
140
points
24.1k
downloads

Documentation

API reference

Publisher

verified publisheraloisdeniel.com

Weekly Downloads

A widget that renders a subpart of an image.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on sprite_image