Skip to content

Commit ceccb2b

Browse files
Added null-safety
1 parent 34a4f21 commit ceccb2b

File tree

9 files changed

+56
-57
lines changed

9 files changed

+56
-57
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.2.3] - 06/03/2021
2+
3+
* Migrated to Null Safety
4+
15
## [1.2.1] - 15/08/2020
26

37
* Added option to activate/deactivate certain dates

example/ios/Flutter/flutter_export_environment.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
# This is a generated file; do not edit or check into version control.
33
export "FLUTTER_ROOT=/Users/vivek/development/flutter"
44
export "FLUTTER_APPLICATION_PATH=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example"
5-
export "FLUTTER_TARGET=lib/main.dart"
5+
export "FLUTTER_TARGET=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example/lib/main.dart"
66
export "FLUTTER_BUILD_DIR=build"
77
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8-
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
9-
export "FLUTTER_FRAMEWORK_DIR=/Users/vivek/development/flutter/bin/cache/artifacts/engine/ios"
108
export "FLUTTER_BUILD_NAME=1.0.0"
119
export "FLUTTER_BUILD_NUMBER=1"
1210
export "DART_OBFUSCATION=false"
13-
export "TRACK_WIDGET_CREATION=false"
11+
export "TRACK_WIDGET_CREATION=true"
1412
export "TREE_SHAKE_ICONS=false"
15-
export "PACKAGE_CONFIG=.packages"
13+
export "PACKAGE_CONFIG=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example/.dart_tool/package_config.json"

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@
247247
/* Begin XCBuildConfiguration section */
248248
249021D3217E4FDB00AE95B9 /* Profile */ = {
249249
isa = XCBuildConfiguration;
250-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
251250
buildSettings = {
252251
ALWAYS_SEARCH_USER_PATHS = NO;
253252
CLANG_ANALYZER_NONNULL = YES;
@@ -321,7 +320,6 @@
321320
};
322321
97C147031CF9000F007C117D /* Debug */ = {
323322
isa = XCBuildConfiguration;
324-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
325323
buildSettings = {
326324
ALWAYS_SEARCH_USER_PATHS = NO;
327325
CLANG_ANALYZER_NONNULL = YES;
@@ -377,7 +375,6 @@
377375
};
378376
97C147041CF9000F007C117D /* Release */ = {
379377
isa = XCBuildConfiguration;
380-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
381378
buildSettings = {
382379
ALWAYS_SEARCH_USER_PATHS = NO;
383380
CLANG_ANALYZER_NONNULL = YES;

example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class MyApp extends StatelessWidget {
1717
}
1818

1919
class MyHomePage extends StatefulWidget {
20-
MyHomePage({Key key, this.title}) : super(key: key);
21-
final String title;
20+
MyHomePage({Key? key, this.title}) : super(key: key);
21+
final String? title;
2222

2323
@override
2424
_MyHomePageState createState() => _MyHomePageState();
@@ -45,7 +45,7 @@ class _MyHomePageState extends State<MyHomePage> {
4545
},
4646
),
4747
appBar: AppBar(
48-
title: Text(widget.title),
48+
title: Text(widget.title!),
4949
),
5050
body: Container(
5151
padding: EdgeInsets.all(20.0),

example/pubspec.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,63 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0-nullsafety.1"
10+
version: "2.5.0"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
1414
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.1.0-nullsafety.1"
17+
version: "2.1.0"
1818
characters:
1919
dependency: transitive
2020
description:
2121
name: characters
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "1.1.0-nullsafety.3"
24+
version: "1.1.0"
2525
charcode:
2626
dependency: transitive
2727
description:
2828
name: charcode
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.2.0-nullsafety.1"
31+
version: "1.2.0"
3232
clock:
3333
dependency: transitive
3434
description:
3535
name: clock
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.1.0-nullsafety.1"
38+
version: "1.1.0"
3939
collection:
4040
dependency: transitive
4141
description:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.15.0-nullsafety.3"
45+
version: "1.15.0"
4646
cupertino_icons:
4747
dependency: "direct main"
4848
description:
4949
name: cupertino_icons
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "0.1.3"
52+
version: "1.0.2"
5353
date_picker_timeline:
5454
dependency: "direct main"
5555
description:
5656
path: ".."
5757
relative: true
5858
source: path
59-
version: "1.2.1"
59+
version: "1.2.3"
6060
fake_async:
6161
dependency: transitive
6262
description:
6363
name: fake_async
6464
url: "https://pub.dartlang.org"
6565
source: hosted
66-
version: "1.2.0-nullsafety.1"
66+
version: "1.2.0"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter
@@ -80,28 +80,28 @@ packages:
8080
name: intl
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "0.16.1"
83+
version: "0.17.0"
8484
matcher:
8585
dependency: transitive
8686
description:
8787
name: matcher
8888
url: "https://pub.dartlang.org"
8989
source: hosted
90-
version: "0.12.10-nullsafety.1"
90+
version: "0.12.10"
9191
meta:
9292
dependency: transitive
9393
description:
9494
name: meta
9595
url: "https://pub.dartlang.org"
9696
source: hosted
97-
version: "1.3.0-nullsafety.3"
97+
version: "1.3.0"
9898
path:
9999
dependency: transitive
100100
description:
101101
name: path
102102
url: "https://pub.dartlang.org"
103103
source: hosted
104-
version: "1.8.0-nullsafety.1"
104+
version: "1.8.0"
105105
sky_engine:
106106
dependency: transitive
107107
description: flutter
@@ -113,55 +113,55 @@ packages:
113113
name: source_span
114114
url: "https://pub.dartlang.org"
115115
source: hosted
116-
version: "1.8.0-nullsafety.2"
116+
version: "1.8.0"
117117
stack_trace:
118118
dependency: transitive
119119
description:
120120
name: stack_trace
121121
url: "https://pub.dartlang.org"
122122
source: hosted
123-
version: "1.10.0-nullsafety.1"
123+
version: "1.10.0"
124124
stream_channel:
125125
dependency: transitive
126126
description:
127127
name: stream_channel
128128
url: "https://pub.dartlang.org"
129129
source: hosted
130-
version: "2.1.0-nullsafety.1"
130+
version: "2.1.0"
131131
string_scanner:
132132
dependency: transitive
133133
description:
134134
name: string_scanner
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "1.1.0-nullsafety.1"
137+
version: "1.1.0"
138138
term_glyph:
139139
dependency: transitive
140140
description:
141141
name: term_glyph
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "1.2.0-nullsafety.1"
144+
version: "1.2.0"
145145
test_api:
146146
dependency: transitive
147147
description:
148148
name: test_api
149149
url: "https://pub.dartlang.org"
150150
source: hosted
151-
version: "0.2.19-nullsafety.2"
151+
version: "0.2.19"
152152
typed_data:
153153
dependency: transitive
154154
description:
155155
name: typed_data
156156
url: "https://pub.dartlang.org"
157157
source: hosted
158-
version: "1.3.0-nullsafety.3"
158+
version: "1.3.0"
159159
vector_math:
160160
dependency: transitive
161161
description:
162162
name: vector_math
163163
url: "https://pub.dartlang.org"
164164
source: hosted
165-
version: "2.1.0-nullsafety.3"
165+
version: "2.1.0"
166166
sdks:
167-
dart: ">=2.10.0-110 <2.11.0"
167+
dart: ">=2.12.0 <3.0.0"

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: A new Flutter project.
1414
version: 1.0.0+1
1515

1616
environment:
17-
sdk: ">=2.1.0 <3.0.0"
17+
sdk: '>=2.12.0 <3.0.0'
1818

1919
dependencies:
2020
flutter:
@@ -25,7 +25,7 @@ dependencies:
2525

2626
# The following adds the Cupertino Icons font to your application.
2727
# Use with the CupertinoIcons class for iOS style icons.
28-
cupertino_icons: ^0.1.2
28+
cupertino_icons: ^1.0.2
2929

3030
dev_dependencies:
3131
flutter_test:

0 commit comments

Comments
 (0)