Skip to content

Commit ad3269e

Browse files
committedSep 7, 2020
fixed
1 parent dbcdbfe commit ad3269e

File tree

7 files changed

+57
-71
lines changed

7 files changed

+57
-71
lines changed
 

‎pubspec.lock

+56-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.0.13"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.6.0"
418
async:
519
dependency: transitive
620
description:
@@ -22,20 +36,27 @@ packages:
2236
url: "https://pub.dartlang.org"
2337
source: hosted
2438
version: "1.1.3"
25-
clock:
39+
collection:
2640
dependency: transitive
2741
description:
28-
name: clock
42+
name: collection
2943
url: "https://pub.dartlang.org"
3044
source: hosted
31-
version: "1.0.1"
32-
collection:
45+
version: "1.14.12"
46+
convert:
3347
dependency: transitive
3448
description:
35-
name: collection
49+
name: convert
3650
url: "https://pub.dartlang.org"
3751
source: hosted
38-
version: "1.14.12"
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.4"
3960
cupertino_icons:
4061
dependency: "direct main"
4162
description:
@@ -50,13 +71,6 @@ packages:
5071
url: "https://pub.dartlang.org"
5172
source: hosted
5273
version: "3.0.10"
53-
fake_async:
54-
dependency: transitive
55-
description:
56-
name: fake_async
57-
url: "https://pub.dartlang.org"
58-
source: hosted
59-
version: "1.1.0"
6074
flutter:
6175
dependency: "direct main"
6276
description: flutter
@@ -95,6 +109,13 @@ packages:
95109
url: "https://pub.dartlang.org"
96110
source: hosted
97111
version: "3.1.4"
112+
image:
113+
dependency: transitive
114+
description:
115+
name: image
116+
url: "https://pub.dartlang.org"
117+
source: hosted
118+
version: "2.1.12"
98119
image_picker:
99120
dependency: "direct main"
100121
description:
@@ -129,21 +150,35 @@ packages:
129150
name: path
130151
url: "https://pub.dartlang.org"
131152
source: hosted
132-
version: "1.7.0"
153+
version: "1.6.4"
133154
pedantic:
134155
dependency: transitive
135156
description:
136157
name: pedantic
137158
url: "https://pub.dartlang.org"
138159
source: hosted
139160
version: "1.9.0"
161+
petitparser:
162+
dependency: transitive
163+
description:
164+
name: petitparser
165+
url: "https://pub.dartlang.org"
166+
source: hosted
167+
version: "2.4.0"
140168
plugin_platform_interface:
141169
dependency: transitive
142170
description:
143171
name: plugin_platform_interface
144172
url: "https://pub.dartlang.org"
145173
source: hosted
146174
version: "1.0.2"
175+
quiver:
176+
dependency: transitive
177+
description:
178+
name: quiver
179+
url: "https://pub.dartlang.org"
180+
source: hosted
181+
version: "2.1.3"
147182
scoped_model:
148183
dependency: "direct main"
149184
description:
@@ -212,6 +247,13 @@ packages:
212247
url: "https://pub.dartlang.org"
213248
source: hosted
214249
version: "2.0.8"
250+
xml:
251+
dependency: transitive
252+
description:
253+
name: xml
254+
url: "https://pub.dartlang.org"
255+
source: hosted
256+
version: "3.6.1"
215257
sdks:
216258
dart: ">=2.7.0 <3.0.0"
217259
flutter: ">=1.12.13 <2.0.0"

‎python_code/cube_solver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def api_root():
2323
color = np.array(value)
2424
distances = np.sqrt(np.sum((colors-color)**2,axis=1))
2525
index_of_smallest = np.where(distances==np.amin(distances))
26-
smallest_distance = colors[index_of_smallest]
26+
# smallest_distance = colors[index_of_smallest]
2727
color_short = color_short + color_name[index_of_smallest[0][0]][0]
2828
color_rgb.insert(key,_color_rgb[index_of_smallest[0][0]])
2929
return jsonify({"status":True,"color_name":color_short,"color_rgb":color_rgb })

‎web/favicon.png

-917 Bytes
Binary file not shown.

‎web/icons/Icon-192.png

-5.17 KB
Binary file not shown.

‎web/icons/Icon-512.png

-8.06 KB
Binary file not shown.

‎web/index.html

-33
This file was deleted.

‎web/manifest.json

-23
This file was deleted.

0 commit comments

Comments
 (0)