Skip to content
Zerker is a lightweight and powerful flutter graphic animation library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
example update v 1.3.1 Sep 10, 2019
lib add version 1.3.2 Sep 12, 2019
test add version 1.3.2 Sep 12, 2019
.gitignore update v 1.3.1 Sep 10, 2019 add new changelog Sep 12, 2019
LICENSE update license Oct 16, 2019 add blank png Oct 11, 2019
pubspec.yaml add version 1.3.2 Sep 12, 2019
zerker.iml add first version Aug 22, 2019

pub package

What is Zerker

Zerker is a flexible and lightweight flutter canvas graphic animation library.

With Zerker, you can create a lot of seemingly cumbersome animation effects, such as animated animations, pop-up animations, scene transitions, icon effects, and more.

At the same time, you can create a lot of simple games with Zerker. Zerker contains elements such as sprites, scrolling backgrounds, and atlases, making it easy to create game worlds with them.

More detailed documentation about Zerker is here

An image


Add this to your package's pubspec.yaml file, And execute the commandflutter pub get:

  zerker: <latest_version_here>
More detailed installation steps, you can refer to here.

Getting started

Import the package

import 'package:zerker/zerker.dart';


Create a zerker widget

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        body: Center(
          child: Zerker(app: MyZKApp(), clip: true, interactive: true, width: 350, height: 350),

Create your Zerker class inherited from ZKApp

class MyZKApp extends ZKApp {

  init() {
    /// init zerker scene

  update(int time) {

Initialize the scene and create elements in the init function

/// Create a zerker sprite
ZKSprite bigboy = ZKSprite(key: "bigboy")
  ..animator.make("front", [0, 1, 2, 3, 4])
  ..animator.make("left", ['5-9'])
  ..animator.make("after", ['10-14'])
  ..animator.make("right", ['15-19'])
  ..onTapDown = (event) {"right", 8, true);

/// Create a zerker text
ZKText text = ZKText()
  ..setPosition(100, 100)
  ..text = "hello world"
  ..setStyle(color: Colors.blueGrey, backgroundColor:[50]);

More cases

You can quickly start learning an example here.

More zerker examples you can view here If you have any questions about Zerker, please let me know by email, thank you very much!

img img img


Zerker is licensed under MIT license. View license.

You can’t perform that action at this time.