Skip to content

Commit 2597607

Browse files
authored
Merge pull request #1 from Sasikumar3595/main
FLUT-4313-Sample updated with null safety.
2 parents c588d84 + eea39bc commit 2597607

File tree

3 files changed

+35
-51
lines changed

3 files changed

+35
-51
lines changed

lib/main.dart

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ class CellBuilderPicker extends StatefulWidget {
1010
}
1111

1212
class ViewNavigationState extends State<CellBuilderPicker> {
13-
DateRangePickerController _controller;
14-
15-
@override
16-
initState() {
17-
_controller = DateRangePickerController();
18-
19-
super.initState();
20-
}
13+
final DateRangePickerController _controller = DateRangePickerController();
2114

2215
Widget build(BuildContext context) {
2316
return MaterialApp(
@@ -81,7 +74,7 @@ class ViewNavigationState extends State<CellBuilderPicker> {
8174
)
8275
],
8376
);
84-
} else if (_controller.view == DateRangePickerView.century) {
77+
} else {
8578
final int yearValue = cellDetails.date.year;
8679
return Column(
8780
children: [

pubspec.lock

Lines changed: 29 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,56 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0-nullsafety.3"
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.3"
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.5"
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.3"
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.3"
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.5"
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: "1.0.1+1"
52+
version: "1.0.2"
5353
fake_async:
5454
dependency: transitive
5555
description:
5656
name: fake_async
5757
url: "https://pub.dartlang.org"
5858
source: hosted
59-
version: "1.2.0-nullsafety.3"
59+
version: "1.2.0"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
@@ -73,35 +73,28 @@ packages:
7373
name: intl
7474
url: "https://pub.dartlang.org"
7575
source: hosted
76-
version: "0.16.1"
76+
version: "0.17.0"
7777
matcher:
7878
dependency: transitive
7979
description:
8080
name: matcher
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "0.12.10-nullsafety.3"
83+
version: "0.12.10"
8484
meta:
8585
dependency: transitive
8686
description:
8787
name: meta
8888
url: "https://pub.dartlang.org"
8989
source: hosted
90-
version: "1.3.0-nullsafety.6"
90+
version: "1.3.0"
9191
path:
9292
dependency: transitive
9393
description:
9494
name: path
9595
url: "https://pub.dartlang.org"
9696
source: hosted
97-
version: "1.8.0-nullsafety.3"
98-
pedantic:
99-
dependency: transitive
100-
description:
101-
name: pedantic
102-
url: "https://pub.dartlang.org"
103-
source: hosted
104-
version: "1.9.2"
97+
version: "1.8.0"
10598
sky_engine:
10699
dependency: transitive
107100
description: flutter
@@ -113,71 +106,69 @@ packages:
113106
name: source_span
114107
url: "https://pub.dartlang.org"
115108
source: hosted
116-
version: "1.8.0-nullsafety.4"
109+
version: "1.8.1"
117110
stack_trace:
118111
dependency: transitive
119112
description:
120113
name: stack_trace
121114
url: "https://pub.dartlang.org"
122115
source: hosted
123-
version: "1.10.0-nullsafety.6"
116+
version: "1.10.0"
124117
stream_channel:
125118
dependency: transitive
126119
description:
127120
name: stream_channel
128121
url: "https://pub.dartlang.org"
129122
source: hosted
130-
version: "2.1.0-nullsafety.3"
123+
version: "2.1.0"
131124
string_scanner:
132125
dependency: transitive
133126
description:
134127
name: string_scanner
135128
url: "https://pub.dartlang.org"
136129
source: hosted
137-
version: "1.1.0-nullsafety.3"
130+
version: "1.1.0"
138131
syncfusion_flutter_core:
139132
dependency: transitive
140133
description:
141-
path: syncfusion_flutter_core
142-
ref: development
143-
resolved-ref: "7a6a18bd4de5e6279da111d9c601842e4b4865f7"
144-
url: "https://buildautomation:Coolcomp299@gitlab.syncfusion.com/essential-studio/flutter-core"
145-
source: git
146-
version: "18.3.35"
134+
name: syncfusion_flutter_core
135+
url: "https://pub.dartlang.org"
136+
source: hosted
137+
version: "19.1.55"
147138
syncfusion_flutter_datepicker:
148139
dependency: "direct main"
149140
description:
150-
path: "E:\\dec 16 picker source\\flutter-datepicker\\flutter_datepicker\\syncfusion_flutter_datepicker"
151-
relative: false
152-
source: path
153-
version: "18.3.35-beta"
141+
name: syncfusion_flutter_datepicker
142+
url: "https://pub.dartlang.org"
143+
source: hosted
144+
version: "19.1.55-beta"
154145
term_glyph:
155146
dependency: transitive
156147
description:
157148
name: term_glyph
158149
url: "https://pub.dartlang.org"
159150
source: hosted
160-
version: "1.2.0-nullsafety.3"
151+
version: "1.2.0"
161152
test_api:
162153
dependency: transitive
163154
description:
164155
name: test_api
165156
url: "https://pub.dartlang.org"
166157
source: hosted
167-
version: "0.2.19-nullsafety.6"
158+
version: "0.2.19"
168159
typed_data:
169160
dependency: transitive
170161
description:
171162
name: typed_data
172163
url: "https://pub.dartlang.org"
173164
source: hosted
174-
version: "1.3.0-nullsafety.5"
165+
version: "1.3.0"
175166
vector_math:
176167
dependency: transitive
177168
description:
178169
name: vector_math
179170
url: "https://pub.dartlang.org"
180171
source: hosted
181-
version: "2.1.0-nullsafety.5"
172+
version: "2.1.0"
182173
sdks:
183-
dart: ">=2.12.0-0.0 <3.0.0"
174+
dart: ">=2.12.0 <3.0.0"

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ 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
flutter:
2525
sdk: flutter
26-
syncfusion_flutter_datepicker: 18.4.30-beta
27-
intl: ">=0.15.0 <0.17.0"
26+
syncfusion_flutter_datepicker: ^19.1.55-beta
27+
intl: ^0.17.0
2828

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: ^1.0.1
32+
cupertino_icons: ^1.0.2
3333

3434
dev_dependencies:
3535
flutter_test:

0 commit comments

Comments
 (0)