Skip to content

Commit f7c8615

Browse files
committed
FLUT-4313-Sample updated with null safety.
1 parent 8986291 commit f7c8615

File tree

3 files changed

+13
-43
lines changed

3 files changed

+13
-43
lines changed

pubspec.lock

+9-16
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ packages:
6262
description: flutter
6363
source: sdk
6464
version: "0.0.0"
65-
flutter_localizations:
66-
dependency: "direct main"
67-
description: flutter
68-
source: sdk
69-
version: "0.0.0"
7065
flutter_test:
7166
dependency: "direct dev"
7267
description: flutter
@@ -78,7 +73,7 @@ packages:
7873
name: intl
7974
url: "https://pub.dartlang.org"
8075
source: hosted
81-
version: "0.17.0-nullsafety.2"
76+
version: "0.17.0"
8277
matcher:
8378
dependency: transitive
8479
description:
@@ -136,19 +131,17 @@ packages:
136131
syncfusion_flutter_core:
137132
dependency: transitive
138133
description:
139-
path: syncfusion_flutter_core
140-
ref: "release/19.1.0.1"
141-
resolved-ref: "9da3941292a1a2c2c7b704cec39e6e498149335f"
142-
url: "https://buildautomation:[email protected]/essential-studio/flutter-core"
143-
source: git
144-
version: "18.3.40"
134+
name: syncfusion_flutter_core
135+
url: "https://pub.dartlang.org"
136+
source: hosted
137+
version: "19.1.55"
145138
syncfusion_flutter_datepicker:
146139
dependency: "direct main"
147140
description:
148-
path: "E:\\Mar 23\\Latestreleasepickerbranch\\flutter_datepicker\\syncfusion_flutter_datepicker"
149-
relative: false
150-
source: path
151-
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"
152145
term_glyph:
153146
dependency: transitive
154147
description:

pubspec.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,17 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1616
version: 1.0.0+1
1717
environment:
18-
sdk: ">=2.12.0 <3.0.0"
18+
sdk: '>=2.12.0 <3.0.0'
1919
dependencies:
2020
flutter:
2121
sdk: flutter
22-
syncfusion_flutter_datepicker: 19.1.54-beta
22+
syncfusion_flutter_datepicker: ^19.1.55-beta
2323

24-
intl: ">=0.15.0 <0.17.0"
24+
intl: ^0.17.0
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: ^1.0.1
29-
30-
dependency_overrides:
31-
intl: ^0.17.0-nullsafety.2
28+
cupertino_icons: ^1.0.2
3229

3330
dev_dependencies:
3431
flutter_test:

test/widget_test.dart

-20
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@
55
// gestures. You can also use WidgetTester to find child widgets in the widget
66
// tree, read text, and verify that the values of widget properties are correct.
77

8-
import 'package:flutter/material.dart';
9-
import 'package:flutter_test/flutter_test.dart';
10-
11-
import 'package:minimum_appointmentduration/main.dart';
12-
138
void main() {
14-
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15-
// Build our app and trigger a frame.
16-
await tester.pumpWidget(PickerViewRestriction());
17-
18-
// Verify that our counter starts at 0.
19-
expect(find.text('0'), findsOneWidget);
20-
expect(find.text('1'), findsNothing);
21-
22-
// Tap the '+' icon and trigger a frame.
23-
await tester.tap(find.byIcon(Icons.add));
24-
await tester.pump();
259

26-
// Verify that our counter has incremented.
27-
expect(find.text('0'), findsNothing);
28-
expect(find.text('1'), findsOneWidget);
29-
});
3010
}

0 commit comments

Comments
 (0)