Skip to content

Commit 8d17772

Browse files
authored
feat: Upgrade various dependencies and fix warnings in Flutter package (#844)
1 parent 2302649 commit 8d17772

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

packages/flutter/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
## 4.0.0 (unreleased)
1+
## [4.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/flutter-3.1.4...flutter-4.0.0) (2023-03-19)
22

33
### BREAKING CHANGES
44

55
* The source file name of the Flutter package has changed; to import the Flutter package use `parse_server_sdk_flutter.dart` instead of `parse_server_sdk.dart` ([#846](https://github.com/parse-community/Parse-SDK-Flutter/pull/846))
6+
* Dependencies are upgraded to `parse_server_sdk` 4.x, `dio` 5.x, `connectivity_plus` 3.x and `package_info_plus` 3.x ([#844](https://github.com/parse-community/Parse-SDK-Flutter/pull/844))
67

78
### Features
89

910
* Rename Flutter package source file to `parse_server_sdk_flutter.dart` ([#846](https://github.com/parse-community/Parse-SDK-Flutter/pull/846))
11+
* Upgrade various dependencies and fix warnings in Flutter package ([#844](https://github.com/parse-community/Parse-SDK-Flutter/pull/844))
1012

1113
## [3.1.4](https://github.com/parse-community/Parse-SDK-Flutter/compare/flutter-3.1.3...flutter-3.1.4) (2023-03-01)
1214

packages/flutter/example_livelist/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MyApp extends StatefulWidget {
99
const MyApp({Key? key}) : super(key: key);
1010

1111
@override
12-
_MyAppState createState() => _MyAppState();
12+
State<MyApp> createState() => _MyAppState();
1313
}
1414

1515
class _MyAppState extends State<MyApp> {
@@ -89,19 +89,19 @@ class _MyAppState extends State<MyApp> {
8989
title: Row(
9090
children: <Widget>[
9191
Flexible(
92+
flex: 1,
9293
child: Text(snapshot.loadedData!
9394
.get<int>('order')
9495
.toString()),
95-
flex: 1,
9696
),
9797
Flexible(
98+
flex: 10,
9899
child: Container(
99100
alignment: Alignment.center,
100101
child: Text(
101102
snapshot.loadedData!.get<String>('text')!,
102103
),
103104
),
104-
flex: 10,
105105
),
106106
],
107107
),
@@ -132,7 +132,7 @@ class ObjectForm extends StatefulWidget {
132132
const ObjectForm({Key? key}) : super(key: key);
133133

134134
@override
135-
_ObjectFormState createState() => _ObjectFormState();
135+
State<ObjectForm> createState() => _ObjectFormState();
136136
}
137137

138138
class _ObjectFormState extends State<ObjectForm> {

packages/flutter/lib/src/utils/parse_live_grid.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ParseLiveGridWidget<T extends sdk.ParseObject> extends StatefulWidget {
5757
final double childAspectRatio;
5858

5959
@override
60-
_ParseLiveGridWidgetState<T> createState() => _ParseLiveGridWidgetState<T>();
60+
State<ParseLiveGridWidget<T>> createState() => _ParseLiveGridWidgetState<T>();
6161

6262
static Widget defaultChildBuilder<T extends sdk.ParseObject>(
6363
BuildContext context, sdk.ParseLiveListElementSnapshot<T> snapshot) {

packages/flutter/lib/src/utils/parse_live_list.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ParseLiveListWidget<T extends sdk.ParseObject> extends StatefulWidget {
5151
final List<String>? preloadedColumns;
5252

5353
@override
54-
_ParseLiveListWidgetState<T> createState() => _ParseLiveListWidgetState<T>();
54+
State<ParseLiveListWidget<T>> createState() => _ParseLiveListWidgetState<T>();
5555

5656
static Widget defaultChildBuilder<T extends sdk.ParseObject>(
5757
BuildContext context, sdk.ParseLiveListElementSnapshot<T> snapshot) {
@@ -213,7 +213,7 @@ class ParseLiveListElementWidget<T extends sdk.ParseObject>
213213
final ChildBuilder<T> childBuilder;
214214

215215
@override
216-
_ParseLiveListElementWidgetState<T> createState() {
216+
State<ParseLiveListElementWidget<T>> createState() {
217217
return _ParseLiveListElementWidgetState<T>();
218218
}
219219
}
@@ -272,9 +272,9 @@ class _ParseLiveListElementWidgetState<T extends sdk.ParseObject>
272272
sizeFactor: widget.sizeFactor,
273273
child: AnimatedSize(
274274
duration: widget.duration,
275-
child: widget.childBuilder(context, _snapshot),
276275
// ignore: deprecated_member_use
277276
vsync: this,
277+
child: widget.childBuilder(context, _snapshot),
278278
),
279279
);
280280
return result;

packages/flutter/pubspec.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ dependencies:
1010
flutter:
1111
sdk: flutter
1212

13-
parse_server_sdk: ^3.1.2
13+
parse_server_sdk: ^4.0.0
1414
# Uncomment for local testing
1515
#parse_server_sdk:
1616
# path: ../dart
1717

1818
# Networking
19-
dio: ^4.0.6
20-
connectivity_plus: ^2.3.2 # only used in the flutter part
19+
dio: ^5.0.1
20+
connectivity_plus: ^3.0.3 # only used in the flutter part
2121

2222
#Database
23-
shared_preferences: ^2.0.15 # only used in the flutter part
23+
shared_preferences: ^2.0.18 # only used in the flutter part
2424

2525
# Utils
26-
path_provider: ^2.0.10 # only used in the flutter part
27-
package_info_plus: ^1.4.2 # only used in the flutter part
28-
sembast: ^3.2.0
29-
sembast_web: ^2.0.1+1
30-
path: ^1.8.1 # required for transitive use only
26+
path_provider: ^2.0.13 # only used in the flutter part
27+
package_info_plus: ^3.0.3 # only used in the flutter part
28+
sembast: ^3.4.0+6
29+
sembast_web: ^2.1.0+4
30+
path: ^1.8.2 # required for transitive use only
3131
platform: ^3.1.0
3232

3333
dev_dependencies:
34-
flutter_lints: ^1.0.4
34+
flutter_lints: ^2.0.1
3535
# Testing
3636
flutter_test:
3737
sdk: flutter
38-
mockito: ^5.2.0
38+
mockito: ^5.3.2
3939
path_provider_platform_interface: ^2.0.6
4040
plugin_platform_interface: ^2.1.4

0 commit comments

Comments
 (0)