Skip to content

Commit a7c1db4

Browse files
committed
flutter icon added
1 parent 0d03b93 commit a7c1db4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+152
-74
lines changed

Diff for: android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<application
44
android:label="Flutter Do!"
55
android:name="${applicationName}"
6-
android:icon="@mipmap/ic_launcher">
6+
android:icon="@mipmap/launcher_icon">
77
<activity
88
android:name=".MainActivity"
99
android:exported="true"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5+
</adaptive-icon>
1.36 KB
973 Bytes
1.69 KB
2.5 KB
3.27 KB

Diff for: android/app/src/main/res/values/colors.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ic_launcher_background">#FFFFFF</color>
4+
</resources>
-92 Bytes
-438 Bytes
-451 Bytes
-390 Bytes
-570 Bytes
-304 Bytes
-438 Bytes
-399 Bytes
-586 Bytes
1002 Bytes
-586 Bytes
-624 Bytes
-457 Bytes
-577 Bytes
-650 Bytes

Diff for: lib/icon/background.png

6.25 KB

Diff for: lib/icon/foreground.png

9.92 KB

Diff for: lib/icon/icon.png

13.7 KB

Diff for: lib/utils/my_button.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MyButton extends StatelessWidget {
1717

1818
return MaterialButton(
1919
height: 60.0,
20-
minWidth: 150.0,
20+
minWidth: 145.0,
2121
shape: RoundedRectangleBorder(
2222
borderRadius: BorderRadius.circular(16.0),
2323
),
+66-66
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{
2-
"images" : [
3-
{
4-
"size" : "16x16",
5-
"idiom" : "mac",
6-
"filename" : "app_icon_16.png",
7-
"scale" : "1x"
2+
"info": {
3+
"version": 1,
4+
"author": "xcode"
85
},
9-
{
10-
"size" : "16x16",
11-
"idiom" : "mac",
12-
"filename" : "app_icon_32.png",
13-
"scale" : "2x"
14-
},
15-
{
16-
"size" : "32x32",
17-
"idiom" : "mac",
18-
"filename" : "app_icon_32.png",
19-
"scale" : "1x"
20-
},
21-
{
22-
"size" : "32x32",
23-
"idiom" : "mac",
24-
"filename" : "app_icon_64.png",
25-
"scale" : "2x"
26-
},
27-
{
28-
"size" : "128x128",
29-
"idiom" : "mac",
30-
"filename" : "app_icon_128.png",
31-
"scale" : "1x"
32-
},
33-
{
34-
"size" : "128x128",
35-
"idiom" : "mac",
36-
"filename" : "app_icon_256.png",
37-
"scale" : "2x"
38-
},
39-
{
40-
"size" : "256x256",
41-
"idiom" : "mac",
42-
"filename" : "app_icon_256.png",
43-
"scale" : "1x"
44-
},
45-
{
46-
"size" : "256x256",
47-
"idiom" : "mac",
48-
"filename" : "app_icon_512.png",
49-
"scale" : "2x"
50-
},
51-
{
52-
"size" : "512x512",
53-
"idiom" : "mac",
54-
"filename" : "app_icon_512.png",
55-
"scale" : "1x"
56-
},
57-
{
58-
"size" : "512x512",
59-
"idiom" : "mac",
60-
"filename" : "app_icon_1024.png",
61-
"scale" : "2x"
62-
}
63-
],
64-
"info" : {
65-
"version" : 1,
66-
"author" : "xcode"
67-
}
68-
}
6+
"images": [
7+
{
8+
"size": "16x16",
9+
"idiom": "mac",
10+
"filename": "app_icon_16.png",
11+
"scale": "1x"
12+
},
13+
{
14+
"size": "16x16",
15+
"idiom": "mac",
16+
"filename": "app_icon_32.png",
17+
"scale": "2x"
18+
},
19+
{
20+
"size": "32x32",
21+
"idiom": "mac",
22+
"filename": "app_icon_32.png",
23+
"scale": "1x"
24+
},
25+
{
26+
"size": "32x32",
27+
"idiom": "mac",
28+
"filename": "app_icon_64.png",
29+
"scale": "2x"
30+
},
31+
{
32+
"size": "128x128",
33+
"idiom": "mac",
34+
"filename": "app_icon_128.png",
35+
"scale": "1x"
36+
},
37+
{
38+
"size": "128x128",
39+
"idiom": "mac",
40+
"filename": "app_icon_256.png",
41+
"scale": "2x"
42+
},
43+
{
44+
"size": "256x256",
45+
"idiom": "mac",
46+
"filename": "app_icon_256.png",
47+
"scale": "1x"
48+
},
49+
{
50+
"size": "256x256",
51+
"idiom": "mac",
52+
"filename": "app_icon_512.png",
53+
"scale": "2x"
54+
},
55+
{
56+
"size": "512x512",
57+
"idiom": "mac",
58+
"filename": "app_icon_512.png",
59+
"scale": "1x"
60+
},
61+
{
62+
"size": "512x512",
63+
"idiom": "mac",
64+
"filename": "app_icon_1024.png",
65+
"scale": "2x"
66+
}
67+
]
68+
}
-3.35 KB
-155 Bytes
-9.41 KB
-378 Bytes
-948 Bytes

Diff for: pubspec.lock

+49
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ packages:
1515
url: "https://pub.dartlang.org"
1616
source: hosted
1717
version: "5.2.0"
18+
archive:
19+
dependency: transitive
20+
description:
21+
name: archive
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "3.3.5"
1825
args:
1926
dependency: transitive
2027
description:
@@ -106,6 +113,13 @@ packages:
106113
url: "https://pub.dartlang.org"
107114
source: hosted
108115
version: "2.0.1"
116+
cli_util:
117+
dependency: transitive
118+
description:
119+
name: cli_util
120+
url: "https://pub.dartlang.org"
121+
source: hosted
122+
version: "0.3.5"
109123
clock:
110124
dependency: transitive
111125
description:
@@ -188,6 +202,13 @@ packages:
188202
description: flutter
189203
source: sdk
190204
version: "0.0.0"
205+
flutter_launcher_icons:
206+
dependency: "direct main"
207+
description:
208+
name: flutter_launcher_icons
209+
url: "https://pub.dartlang.org"
210+
source: hosted
211+
version: "0.11.0"
191212
flutter_lints:
192213
dependency: "direct dev"
193214
description:
@@ -263,6 +284,13 @@ packages:
263284
url: "https://pub.dartlang.org"
264285
source: hosted
265286
version: "4.0.2"
287+
image:
288+
dependency: transitive
289+
description:
290+
name: image
291+
url: "https://pub.dartlang.org"
292+
source: hosted
293+
version: "3.2.2"
266294
intl:
267295
dependency: "direct main"
268296
description:
@@ -396,6 +424,13 @@ packages:
396424
url: "https://pub.dartlang.org"
397425
source: hosted
398426
version: "2.1.3"
427+
petitparser:
428+
dependency: transitive
429+
description:
430+
name: petitparser
431+
url: "https://pub.dartlang.org"
432+
source: hosted
433+
version: "5.1.0"
399434
platform:
400435
dependency: transitive
401436
description:
@@ -410,6 +445,13 @@ packages:
410445
url: "https://pub.dartlang.org"
411446
source: hosted
412447
version: "2.1.3"
448+
pointycastle:
449+
dependency: transitive
450+
description:
451+
name: pointycastle
452+
url: "https://pub.dartlang.org"
453+
source: hosted
454+
version: "3.6.2"
413455
pool:
414456
dependency: transitive
415457
description:
@@ -569,6 +611,13 @@ packages:
569611
url: "https://pub.dartlang.org"
570612
source: hosted
571613
version: "0.2.0+2"
614+
xml:
615+
dependency: transitive
616+
description:
617+
name: xml
618+
url: "https://pub.dartlang.org"
619+
source: hosted
620+
version: "6.1.0"
572621
yaml:
573622
dependency: transitive
574623
description:

Diff for: pubspec.yaml

+23-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,27 @@ dependencies:
4040
hive: ^2.2.3
4141
hive_flutter: ^1.1.0
4242
intl: ^0.18.0
43+
flutter_launcher_icons: ^0.11.0
44+
45+
flutter_icons:
46+
android: "launcher_icon"
47+
ios: true
48+
image_path: "lib/icon/icon.png"
49+
adaptive_icon_background: "#FFFFFF"
50+
adaptive_icon_foreground: "lib/icon/icon.png"
51+
min_sdk_android: 21 # android min sdk min:16, default 21
52+
web:
53+
generate: true
54+
image_path: "lib/icon/icon.png"
55+
background_color: "#FFFFFF"
56+
theme_color: "#FFFFFF"
57+
windows:
58+
generate: true
59+
image_path: "lib/icon/icon.png"
60+
icon_size: 48 # min:48, max:256, default: 48
61+
macos:
62+
generate: true
63+
image_path: "lib/icon/icon.png"
4364

4465
dev_dependencies:
4566
flutter_test:
@@ -66,9 +87,8 @@ flutter:
6687
uses-material-design: true
6788

6889
# To add assets to your application, add an assets section, like this:
69-
# assets:
70-
# - images/a_dot_burr.jpeg
71-
# - images/a_dot_ham.jpeg
90+
assets:
91+
- lib/icon/
7292

7393
# An image asset can refer to one or more resolution-specific "variants", see
7494
# https://flutter.dev/assets-and-images/#resolution-aware

Diff for: web/favicon.png

-552 Bytes

Diff for: web/icons/Icon-192.png

-1.9 KB

Diff for: web/icons/Icon-512.png

525 Bytes

Diff for: web/icons/Icon-maskable-192.png

-2.2 KB

Diff for: web/icons/Icon-maskable-512.png

-11.9 KB

Diff for: web/manifest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"short_name": "flutter_do",
44
"start_url": ".",
55
"display": "standalone",
6-
"background_color": "#0175C2",
7-
"theme_color": "#0175C2",
6+
"background_color": "#FFFFFF",
7+
"theme_color": "#FFFFFF",
88
"description": "A new Flutter project.",
99
"orientation": "portrait-primary",
1010
"prefer_related_applications": false,
@@ -32,4 +32,4 @@
3232
"purpose": "maskable"
3333
}
3434
]
35-
}
35+
}

Diff for: windows/runner/resources/app_icon.ico

-32 KB
Binary file not shown.

0 commit comments

Comments
 (0)