Skip to content

Commit d1cb424

Browse files
author
Dimitri Bocquet
committed
upgrade app + null safety
1 parent 8bba0ca commit d1cb424

File tree

8 files changed

+128
-72
lines changed

8 files changed

+128
-72
lines changed

example/android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
88
<application
9-
android:name="io.flutter.app.FlutterApplication"
9+
android:name="${applicationName}"
1010
android:label="example"
1111
android:icon="@mipmap/ic_launcher">
1212
<activity

example/ios/Runner.xcodeproj/project.pbxproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -179,10 +179,12 @@
179179
/* Begin PBXShellScriptBuildPhase section */
180180
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
181181
isa = PBXShellScriptBuildPhase;
182+
alwaysOutOfDate = 1;
182183
buildActionMask = 2147483647;
183184
files = (
184185
);
185186
inputPaths = (
187+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
186188
);
187189
name = "Thin Binary";
188190
outputPaths = (
@@ -193,6 +195,7 @@
193195
};
194196
9740EEB61CF901F6004384FC /* Run Script */ = {
195197
isa = PBXShellScriptBuildPhase;
198+
alwaysOutOfDate = 1;
196199
buildActionMask = 2147483647;
197200
files = (
198201
);

example/ios/Runner/Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<false/>
4444
<key>CADisableMinimumFrameDurationOnPhone</key>
4545
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
4648
</dict>
4749
</plist>

example/lib/example2.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:focused_menu/focused_menu.dart';
33

44
class Example2 extends StatefulWidget {
5-
const Example2({Key key}) : super(key: key);
5+
const Example2({Key? key}) : super(key: key);
66

77
@override
88
State<Example2> createState() => _Example2State();

example/lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MyApp extends StatelessWidget {
3535

3636
class HomePage extends StatelessWidget {
3737
const HomePage({
38-
Key key,
38+
Key? key,
3939
}) : super(key: key);
4040

4141
@override

example/pubspec.lock

+60-34
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,56 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.9.0"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "1.2.1"
27+
version: "1.3.0"
2528
clock:
2629
dependency: transitive
2730
description:
2831
name: clock
29-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3034
source: hosted
3135
version: "1.1.1"
3236
collection:
3337
dependency: transitive
3438
description:
3539
name: collection
36-
url: "https://pub.dartlang.org"
40+
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
41+
url: "https://pub.dev"
3742
source: hosted
38-
version: "1.16.0"
43+
version: "1.17.1"
3944
cupertino_icons:
4045
dependency: "direct main"
4146
description:
4247
name: cupertino_icons
43-
url: "https://pub.dartlang.org"
48+
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
49+
url: "https://pub.dev"
4450
source: hosted
45-
version: "0.1.3"
51+
version: "1.0.5"
4652
fake_async:
4753
dependency: transitive
4854
description:
4955
name: fake_async
50-
url: "https://pub.dartlang.org"
56+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57+
url: "https://pub.dev"
5158
source: hosted
5259
version: "1.3.1"
5360
flutter:
@@ -67,34 +74,46 @@ packages:
6774
relative: true
6875
source: path
6976
version: "1.0.2"
77+
js:
78+
dependency: transitive
79+
description:
80+
name: js
81+
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
82+
url: "https://pub.dev"
83+
source: hosted
84+
version: "0.6.7"
7085
matcher:
7186
dependency: transitive
7287
description:
7388
name: matcher
74-
url: "https://pub.dartlang.org"
89+
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
90+
url: "https://pub.dev"
7591
source: hosted
76-
version: "0.12.12"
92+
version: "0.12.15"
7793
material_color_utilities:
7894
dependency: transitive
7995
description:
8096
name: material_color_utilities
81-
url: "https://pub.dartlang.org"
97+
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
98+
url: "https://pub.dev"
8299
source: hosted
83-
version: "0.1.5"
100+
version: "0.2.0"
84101
meta:
85102
dependency: transitive
86103
description:
87104
name: meta
88-
url: "https://pub.dartlang.org"
105+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
106+
url: "https://pub.dev"
89107
source: hosted
90-
version: "1.8.0"
108+
version: "1.9.1"
91109
path:
92110
dependency: transitive
93111
description:
94112
name: path
95-
url: "https://pub.dartlang.org"
113+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
114+
url: "https://pub.dev"
96115
source: hosted
97-
version: "1.8.2"
116+
version: "1.8.3"
98117
sky_engine:
99118
dependency: transitive
100119
description: flutter
@@ -104,50 +123,57 @@ packages:
104123
dependency: transitive
105124
description:
106125
name: source_span
107-
url: "https://pub.dartlang.org"
126+
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
127+
url: "https://pub.dev"
108128
source: hosted
109-
version: "1.9.0"
129+
version: "1.9.1"
110130
stack_trace:
111131
dependency: transitive
112132
description:
113133
name: stack_trace
114-
url: "https://pub.dartlang.org"
134+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
135+
url: "https://pub.dev"
115136
source: hosted
116-
version: "1.10.0"
137+
version: "1.11.0"
117138
stream_channel:
118139
dependency: transitive
119140
description:
120141
name: stream_channel
121-
url: "https://pub.dartlang.org"
142+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
143+
url: "https://pub.dev"
122144
source: hosted
123-
version: "2.1.0"
145+
version: "2.1.1"
124146
string_scanner:
125147
dependency: transitive
126148
description:
127149
name: string_scanner
128-
url: "https://pub.dartlang.org"
150+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
151+
url: "https://pub.dev"
129152
source: hosted
130-
version: "1.1.1"
153+
version: "1.2.0"
131154
term_glyph:
132155
dependency: transitive
133156
description:
134157
name: term_glyph
135-
url: "https://pub.dartlang.org"
158+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
159+
url: "https://pub.dev"
136160
source: hosted
137161
version: "1.2.1"
138162
test_api:
139163
dependency: transitive
140164
description:
141165
name: test_api
142-
url: "https://pub.dartlang.org"
166+
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
167+
url: "https://pub.dev"
143168
source: hosted
144-
version: "0.4.12"
169+
version: "0.5.1"
145170
vector_math:
146171
dependency: transitive
147172
description:
148173
name: vector_math
149-
url: "https://pub.dartlang.org"
174+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
175+
url: "https://pub.dev"
150176
source: hosted
151-
version: "2.1.2"
177+
version: "2.1.4"
152178
sdks:
153-
dart: ">=2.17.0-0 <3.0.0"
179+
dart: ">=3.0.0-0 <4.0.0"

example/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1818
version: 1.0.0+1
1919

2020
environment:
21-
sdk: ">=2.7.0 <3.0.0"
21+
sdk: ">=2.12.0 <3.0.0"
2222

2323
dependencies:
2424
focused_menu:
@@ -29,7 +29,7 @@ dependencies:
2929

3030
# The following adds the Cupertino Icons font to your application.
3131
# Use with the CupertinoIcons class for iOS style icons.
32-
cupertino_icons: ^0.1.3
32+
cupertino_icons: ^1.0.5
3333

3434
dev_dependencies:
3535
flutter_test:

0 commit comments

Comments
 (0)