Skip to content

Commit f1025e7

Browse files
committed
add first version
add first version
0 parents  commit f1025e7

File tree

8 files changed

+391
-0
lines changed

8 files changed

+391
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build/
2+
.DS_Store

.packages

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by pub on 2019-08-22 17:08:46.342759.
2+
async:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/async-2.2.0/lib/
3+
boolean_selector:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/
4+
charcode:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
5+
collection:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/
6+
convert:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
7+
crypto:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/crypto-2.0.6/lib/
8+
cupertino_icons:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.2/lib/
9+
flutter:file:///Users/block-mac/Desktop/works/Flutter/flutter-sdk/flutter/packages/flutter/lib/
10+
flutter_test:file:///Users/block-mac/Desktop/works/Flutter/flutter-sdk/flutter/packages/flutter_test/lib/
11+
matcher:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.5/lib/
12+
meta:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/
13+
path:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/path-1.6.2/lib/
14+
pedantic:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/pedantic-1.7.0/lib/
15+
quiver:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.3/lib/
16+
sky_engine:file:///Users/block-mac/Desktop/works/Flutter/flutter-sdk/flutter/bin/cache/pkg/sky_engine/lib/
17+
source_span:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5/lib/
18+
stack_trace:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
19+
stream_channel:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
20+
string_scanner:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.4/lib/
21+
term_glyph:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
22+
test_api:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.5/lib/
23+
typed_data:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
24+
uuid:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/uuid-2.0.1/lib/
25+
vector_math:file:///Users/block-mac/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
26+
zerker:lib/

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 1.1.2
2+
3+
- Add CHANGELOG.md file
4+
5+
## 1.1.1
6+
7+
- Modify some method names
8+
- Add more easing functions
9+
10+
## 1.1.0
11+
12+
- Modify the micketer structure

LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The MIT License
2+
3+
Copyright (c) 2010-2012 Tween.js authors.
4+
5+
Easing equations Copyright (c) 2001 Robert Penner http://robertpenner.com/easing/
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.

README.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Zerker
2+
3+
## What is Zerker
4+
5+
Zerker is a flexible and lightweight flutter canvas graphic animation library.
6+
7+
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.
8+
9+
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.
10+
11+
![An image](/images/phone.jpeg)
12+
13+
CODE:
14+
15+
```dart
16+
Altas fire = await ZKAssets.loadAltas(
17+
key: "fire",
18+
json: "assets/a.json",
19+
image: "assets/fire.png"
20+
);
21+
22+
Altas ball = await ZKAssets.loadImage(
23+
key: "ball",
24+
image: "assets/ball.png"
25+
);
26+
27+
ZKAssets.loadAssets(
28+
urls: ["a.png", "b.png", ...],
29+
baseUrl: "assets/",
30+
onLoad: (){
31+
...
32+
}
33+
);
34+
```
35+
36+
![An image](/images/fp.png)
37+
38+
39+
---
40+
41+
## Install
42+
43+
### Use this package as a library
44+
#### 1. Depend on it
45+
Add this to your package's pubspec.yaml file:
46+
47+
```yaml
48+
dependencies:
49+
zerker: ^1.0.1
50+
```
51+
52+
#### 2. Install it
53+
You can install packages from the command line:
54+
with Flutter:
55+
56+
```shell
57+
$ flutter pub get
58+
```
59+
60+
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
61+
62+
#### 3. Import it
63+
Now in your Dart code, you can use:
64+
65+
```dart
66+
import 'package:zerker/zerker.dart';
67+
```

pubspec.lock

+167
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Generated by pub
2+
# See https://dart.dev/tools/pub/glossary#lockfile
3+
packages:
4+
async:
5+
dependency: transitive
6+
description:
7+
name: async
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.2.0"
11+
boolean_selector:
12+
dependency: transitive
13+
description:
14+
name: boolean_selector
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.0.4"
18+
charcode:
19+
dependency: transitive
20+
description:
21+
name: charcode
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.1.2"
25+
collection:
26+
dependency: transitive
27+
description:
28+
name: collection
29+
url: "https://pub.dartlang.org"
30+
source: hosted
31+
version: "1.14.11"
32+
convert:
33+
dependency: transitive
34+
description:
35+
name: convert
36+
url: "https://pub.dartlang.org"
37+
source: hosted
38+
version: "2.1.1"
39+
crypto:
40+
dependency: transitive
41+
description:
42+
name: crypto
43+
url: "https://pub.dartlang.org"
44+
source: hosted
45+
version: "2.0.6"
46+
cupertino_icons:
47+
dependency: "direct main"
48+
description:
49+
name: cupertino_icons
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "0.1.2"
53+
flutter:
54+
dependency: "direct main"
55+
description: flutter
56+
source: sdk
57+
version: "0.0.0"
58+
flutter_test:
59+
dependency: "direct dev"
60+
description: flutter
61+
source: sdk
62+
version: "0.0.0"
63+
matcher:
64+
dependency: transitive
65+
description:
66+
name: matcher
67+
url: "https://pub.dartlang.org"
68+
source: hosted
69+
version: "0.12.5"
70+
meta:
71+
dependency: transitive
72+
description:
73+
name: meta
74+
url: "https://pub.dartlang.org"
75+
source: hosted
76+
version: "1.1.6"
77+
path:
78+
dependency: transitive
79+
description:
80+
name: path
81+
url: "https://pub.dartlang.org"
82+
source: hosted
83+
version: "1.6.2"
84+
pedantic:
85+
dependency: transitive
86+
description:
87+
name: pedantic
88+
url: "https://pub.dartlang.org"
89+
source: hosted
90+
version: "1.7.0"
91+
quiver:
92+
dependency: transitive
93+
description:
94+
name: quiver
95+
url: "https://pub.dartlang.org"
96+
source: hosted
97+
version: "2.0.3"
98+
sky_engine:
99+
dependency: transitive
100+
description: flutter
101+
source: sdk
102+
version: "0.0.99"
103+
source_span:
104+
dependency: transitive
105+
description:
106+
name: source_span
107+
url: "https://pub.dartlang.org"
108+
source: hosted
109+
version: "1.5.5"
110+
stack_trace:
111+
dependency: transitive
112+
description:
113+
name: stack_trace
114+
url: "https://pub.dartlang.org"
115+
source: hosted
116+
version: "1.9.3"
117+
stream_channel:
118+
dependency: transitive
119+
description:
120+
name: stream_channel
121+
url: "https://pub.dartlang.org"
122+
source: hosted
123+
version: "2.0.0"
124+
string_scanner:
125+
dependency: transitive
126+
description:
127+
name: string_scanner
128+
url: "https://pub.dartlang.org"
129+
source: hosted
130+
version: "1.0.4"
131+
term_glyph:
132+
dependency: transitive
133+
description:
134+
name: term_glyph
135+
url: "https://pub.dartlang.org"
136+
source: hosted
137+
version: "1.1.0"
138+
test_api:
139+
dependency: transitive
140+
description:
141+
name: test_api
142+
url: "https://pub.dartlang.org"
143+
source: hosted
144+
version: "0.2.5"
145+
typed_data:
146+
dependency: transitive
147+
description:
148+
name: typed_data
149+
url: "https://pub.dartlang.org"
150+
source: hosted
151+
version: "1.1.6"
152+
uuid:
153+
dependency: "direct main"
154+
description:
155+
name: uuid
156+
url: "https://pub.dartlang.org"
157+
source: hosted
158+
version: "2.0.1"
159+
vector_math:
160+
dependency: transitive
161+
description:
162+
name: vector_math
163+
url: "https://pub.dartlang.org"
164+
source: hosted
165+
version: "2.0.8"
166+
sdks:
167+
dart: ">=2.2.2 <3.0.0"

pubspec.yaml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: zerker
2+
description: Zerker is a flexible and lightweight flutter canvas graphic animation library.
3+
4+
# The following defines the version and build number for your application.
5+
# A version number is three numbers separated by dots, like 1.2.43
6+
# followed by an optional build number separated by a +.
7+
# Both the version and the builder number may be overridden in flutter
8+
# build by specifying --build-name and --build-number, respectively.
9+
# In Android, build-name is used as versionName while build-number used as versionCode.
10+
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11+
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12+
# Read more about iOS versioning at
13+
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14+
version: 1.2.5
15+
author: anonymous <[email protected]>
16+
homepage: https://github.com/flutterkit/zerker
17+
18+
environment:
19+
sdk: ">=2.1.0 <3.0.0"
20+
21+
dependencies:
22+
flutter:
23+
sdk: flutter
24+
25+
# The following adds the Cupertino Icons font to your application.
26+
# Use with the CupertinoIcons class for iOS style icons.
27+
cupertino_icons: ^0.1.2
28+
uuid: 2.0.1
29+
30+
dev_dependencies:
31+
flutter_test:
32+
sdk: flutter
33+
34+
35+
# For information on the generic Dart part of this file, see the
36+
# following page: https://www.dartlang.org/tools/pub/pubspec
37+
38+
# The following section is specific to Flutter.
39+
flutter:
40+
41+
# The following line ensures that the Material Icons font is
42+
# included with your application, so that you can use the icons in
43+
# the material Icons class.
44+
uses-material-design: true
45+
46+
# To add assets to your application, add an assets section, like this:
47+
assets:
48+
- example/assets/bigboy.png
49+
- example/assets/dino/dino.png
50+
- example/assets/dino/dino.json
51+
52+
# An image asset can refer to one or more resolution-specific "variants", see
53+
# https://flutter.dev/assets-and-images/#resolution-aware.
54+
55+
# For details regarding adding assets from package dependencies, see
56+
# https://flutter.dev/assets-and-images/#from-packages
57+
58+
# To add custom fonts to your application, add a fonts section here,
59+
# in this "flutter" section. Each entry in this list should have a
60+
# "family" key with the font family name, and a "fonts" key with a
61+
# list giving the asset and other descriptors for the font. For
62+
# example:
63+
# fonts:
64+
# - family: Schyler
65+
# fonts:
66+
# - asset: fonts/Schyler-Regular.ttf
67+
# - asset: fonts/Schyler-Italic.ttf
68+
# style: italic
69+
# - family: Trajan Pro
70+
# fonts:
71+
# - asset: fonts/TrajanPro.ttf
72+
# - asset: fonts/TrajanPro_Bold.ttf
73+
# weight: 700
74+
#
75+
# For details regarding fonts from package dependencies,
76+
# see https://flutter.dev/custom-fonts/#from-packages

0 commit comments

Comments
 (0)