flutter_mini_sprite 0.0.1 copy "flutter_mini_sprite: ^0.0.1" to clipboard
flutter_mini_sprite: ^0.0.1 copied to clipboard

Provides Widgets to render mini sprites into Flutter

example/lib/main.dart

import 'package:dashbook/dashbook.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mini_sprite/flutter_mini_sprite.dart';
import 'package:mini_sprite/mini_sprite.dart';

void main() {
  final dashbook = Dashbook();

  dashbook.storiesOf('Flutter Mini Sprite').add('default', (context) {
    return Center(
      child: MiniSpriteWidget(
        pixelSize: context.numberProperty('pixelSize', 10),
        sprite: MiniSprite.fromDataString(
            '8,8;1,-1;3,1;4,-1;1,1;3,0;1,1;3,-1;1,1;4,0;2,1;1,-1;1,1;6,0;2,1;6,0;2,1;4,0;2,1;1,-1;1,1;3,0;1,1;4,-1;3,1;4,-1'),
        palette: [
          context.colorProperty('color 1', const Color(0xFFFFFFFF)),
          context.colorProperty('color 2', const Color(0xFF000000)),
        ],
      ),
    );
  });

  runApp(dashbook);
}
1
likes
150
pub points
19%
popularity

Publisher

unverified uploader

Provides Widgets to render mini sprites into Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, mini_sprite

More

Packages that depend on flutter_mini_sprite