Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e40949

Browse files
committed
refactor: rerwire core logic to minimize hash length
1 parent3305edb commit2e40949

27 files changed

+468
-271
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Size of the blob. It is mandatory.
4848
Blob.random(size:200),
4949
```
5050

51-
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/blob_shape_2.jpg)
51+
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/basic_shape_2.jpg)
5252

5353
 
5454

@@ -65,9 +65,9 @@ Blob.random(
6565
),
6666
```
6767

68-
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/blob_shape_1.jpg)
69-
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/blob_shape_3.jpg)
70-
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/blob_shape_4.jpg)
68+
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/basic_shape_1.jpg)
69+
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/basic_shape_3.jpg)
70+
![Basic blob](https://raw.githubusercontent.com/lokesh-coder/flutter_blobs/develop/screenshots/basic_shape_4.jpg)
7171

7272
 
7373

‎example/android/app/src/main/res/values/styles.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- Show a splash screen on the activity. Automatically removed when
66
Flutter draws its first frame-->
77
<itemname="android:windowBackground">@drawable/launch_background</item>
8+
<itemname="android:defaultFocusHighlightEnabled">false</item>
89
</style>
910
<!-- Theme applied to the Android Window as soon as the process has started.
1011
This theme determines the color of the Android Window while your

‎example/assets/Ropa_Sans/OFL.txt‎

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
Copyright 2013 The Ropa Sans Project Authors (nikoltchev@lettersoup.de), with Reserved Font Name "Ropa Sans".
2+
3+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4+
This license is copied below, and is also available with a FAQ at:
5+
http://scripts.sil.org/OFL
6+
7+
8+
-----------------------------------------------------------
9+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10+
-----------------------------------------------------------
11+
12+
PREAMBLE
13+
The goals of the Open Font License (OFL) are to stimulate worldwide
14+
development of collaborative font projects, to support the font creation
15+
efforts of academic and linguistic communities, and to provide a free and
16+
open framework in which fonts may be shared and improved in partnership
17+
with others.
18+
19+
The OFL allows the licensed fonts to be used, studied, modified and
20+
redistributed freely as long as they are not sold by themselves. The
21+
fonts, including any derivative works, can be bundled, embedded,
22+
redistributed and/or sold with any software provided that any reserved
23+
names are not used by derivative works. The fonts and derivatives,
24+
however, cannot be released under any other type of license. The
25+
requirement for fonts to remain under this license does not apply
26+
to any document created using the fonts or their derivatives.
27+
28+
DEFINITIONS
29+
"Font Software" refers to the set of files released by the Copyright
30+
Holder(s) under this license and clearly marked as such. This may
31+
include source files, build scripts and documentation.
32+
33+
"Reserved Font Name" refers to any names specified as such after the
34+
copyright statement(s).
35+
36+
"Original Version" refers to the collection of Font Software components as
37+
distributed by the Copyright Holder(s).
38+
39+
"Modified Version" refers to any derivative made by adding to, deleting,
40+
or substituting -- in part or in whole -- any of the components of the
41+
Original Version, by changing formats or by porting the Font Software to a
42+
new environment.
43+
44+
"Author" refers to any designer, engineer, programmer, technical
45+
writer or other person who contributed to the Font Software.
46+
47+
PERMISSION & CONDITIONS
48+
Permission is hereby granted, free of charge, to any person obtaining
49+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
50+
redistribute, and sell modified and unmodified copies of the Font
51+
Software, subject to the following conditions:
52+
53+
1) Neither the Font Software nor any of its individual components,
54+
in Original or Modified Versions, may be sold by itself.
55+
56+
2) Original or Modified Versions of the Font Software may be bundled,
57+
redistributed and/or sold with any software, provided that each copy
58+
contains the above copyright notice and this license. These can be
59+
included either as stand-alone text files, human-readable headers or
60+
in the appropriate machine-readable metadata fields within text or
61+
binary files as long as those fields can be easily viewed by the user.
62+
63+
3) No Modified Version of the Font Software may use the Reserved Font
64+
Name(s) unless explicit written permission is granted by the corresponding
65+
Copyright Holder. This restriction only applies to the primary font name as
66+
presented to the users.
67+
68+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69+
Software shall not be used to promote, endorse or advertise any
70+
Modified Version, except to acknowledge the contribution(s) of the
71+
Copyright Holder(s) and the Author(s) or with their explicit written
72+
permission.
73+
74+
5) The Font Software, modified or unmodified, in part or in whole,
75+
must be distributed entirely under this license, and must not be
76+
distributed under any other license. The requirement for fonts to
77+
remain under this license does not apply to any document created
78+
using the Font Software.
79+
80+
TERMINATION
81+
This license becomes null and void if any of the above conditions are
82+
not met.
83+
84+
DISCLAIMER
85+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93+
OTHER DEALINGS IN THE FONT SOFTWARE.
55.2 KB
Binary file not shown.
53.6 KB
Binary file not shown.

‎example/lib/examples/animated/animated_basic.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class AnimatedBasicExample extends StatelessWidget {
2424
),
2525
),
2626
Button('Randomize', onTap: () {
27-
BlobDatafoo= blobCtrl.change();
28-
print(foo.svgPath);
27+
BlobDatablobData= blobCtrl.change();
28+
print(blobData);
2929
})
3030
],
3131
),

‎example/lib/examples/animated/animated_debug.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class AnimatedDebugExample extends StatelessWidget {
1818
Container(
1919
child:Blob.animatedRandom(
2020
size:300,
21-
edgesCount:8,
22-
minGrowth:2,
21+
edgesCount:6,
22+
minGrowth:3,
2323
controller: blobCtrl,
2424
debug:true,
2525
),

‎example/lib/examples/animated/animated_hash.dart‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class AnimatedHashExample extends StatelessWidget {
1717
children: [
1818
Container(
1919
child:Blob.animatedFromHash(
20-
hash: [
21-
'H4sIANhSwV4A/w3LsQ0AMQgEwYY24A5koBbr+2/jnY40NzdxBD7GPagXrznzKKlFbjSBJDKKs9QLE98PNkNQxj0AAAA='
22-
],
20+
hash: ['6-3-372642'],
2321
size:400,
2422
controller: blobCtrl,
2523
),

‎example/lib/examples/animated/animated_multiple_hash.dart‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,48 +27,38 @@ class _AnimatedMultipleHashExampleState
2727
mainAxisAlignment:MainAxisAlignment.spaceEvenly,
2828
children: [
2929
Blob.animatedFromHash(
30-
hash: [
31-
'H4sIAB5VwV4A/w3KwQ0AMQjEwIb8YNmQcLWc0n8b4WWN5N8lMgJn4jLqcZvck8URcqPaFPkFfVizd9wHDGCsqzsAAAA=',
32-
],
30+
hash: ['6-3-22556'],
3331
styles:BlobStyles(
3432
color:Color(0xff596275).withOpacity(0.5),
3533
fillType:BlobFillType.stroke,
36-
strokeWidth:20,
34+
strokeWidth:2,
3735
),
3836
size:50,
3937
),
4038
Blob.animatedFromHash(
41-
hash: [
42-
'H4sIADZVwV4A/w3KsREAMQjEwIYU3IENdi2e77+NJ9hEo5cuQiLaxBXuRXrcSQer8N6jOKSCTtb8R98PT0B1nTwAAAA='
43-
],
39+
hash: ['6-3-90151'],
4440
size:50,
4541
styles:BlobStyles(
4642
color:Color(0xff596275).withOpacity(0.5),
4743
fillType:BlobFillType.stroke,
48-
strokeWidth:20,
44+
strokeWidth:2,
4945
),
5046
),
5147
Blob.animatedFromHash(
52-
hash: [
53-
'H4sIAEFVwV4A/w3LsRHAQAjEwIYUHIcf+Fo87r8NE2wmvXkLS6TXEVEmq+jG55JNOIhZMXjrEc8Oo+8H5uyPHz0AAAA='
54-
],
48+
hash: ['6-3-79206'],
5549
size:50,
5650
styles:BlobStyles(
5751
color:Color(0xff596275).withOpacity(0.5),
5852
fillType:BlobFillType.stroke,
59-
strokeWidth:20,
53+
strokeWidth:2,
6054
),
6155
),
6256
],
6357
),
6458
SizedBox(height:30),
6559
Container(
6660
child:Blob.animatedFromHash(
67-
hash: [
68-
'H4sIAB5VwV4A/w3KwQ0AMQjEwIb8YNmQcLWc0n8b4WWN5N8lMgJn4jLqcZvck8URcqPaFPkFfVizd9wHDGCsqzsAAAA=',
69-
'H4sIADZVwV4A/w3KsREAMQjEwIYU3IENdi2e77+NJ9hEo5cuQiLaxBXuRXrcSQer8N6jOKSCTtb8R98PT0B1nTwAAAA=',
70-
'H4sIAEFVwV4A/w3LsRHAQAjEwIYUHIcf+Fo87r8NE2wmvXkLS6TXEVEmq+jG55JNOIhZMXjrEc8Oo+8H5uyPHz0AAAA='
71-
],
61+
hash: ['6-3-22556','6-3-90151','6-3-79206'],
7262
size:400,
7363
controller: blobCtrl,
7464
styles:BlobStyles(color:Color(0xff34ace0)),

‎example/lib/examples/examples.dart‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import'package:example/examples/static/static_color.dart';
2+
import'package:example/examples/static/static_multiple_hash.dart';
23
import'package:example/examples/static/static_stroke.dart';
34
import'package:flutter/material.dart';
45
import'../common/app_shell.dart';
@@ -17,6 +18,7 @@ import 'static/static_clipper.dart';
1718
import'static/static_debug.dart';
1819
import'static/static_gradient.dart';
1920
import'static/static_hash.dart';
21+
import'inspirations/rotate.dart';
2022

2123
classExamplesextendsStatelessWidget {
2224
constExamples({Key key}):super(key: key);
@@ -28,6 +30,7 @@ class Examples extends StatelessWidget {
2830
child:Container(
2931
child:ListView(
3032
children: [
33+
Link('Insipation - rotate',RotateInpirationExample()),
3134
Link('Animated - Basic blob',AnimatedBasicExample()),
3235
Link('Animated-Basic with child',AnimatedChildExample()),
3336
Link('Animated-Debug',AnimatedDebugExample()),
@@ -43,7 +46,7 @@ class Examples extends StatelessWidget {
4346
Link('Gradient',StaticGradientExample()),
4447
Link('Outline blob',StaticStrokeExample()),
4548
Link('Fixed blob',StaticHashExample()),
46-
Link('Fixed Multiple Hash',StaticHashExample()),
49+
Link('Fixed Multiple Hash',StaticMultipleHashExample()),
4750
Link('Custom color',StaticColorExample()),
4851
Link('Clipper',StaticClipperExample()),
4952
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp