Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
## 4.0.0 (unreleased)
## [4.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/flutter-3.1.4...flutter-4.0.0) (2023-03-19)

### BREAKING CHANGES

* 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))
* 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))

### Features

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

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

Expand Down
8 changes: 4 additions & 4 deletions packages/flutter/example_livelist/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);

@override
_MyAppState createState() => _MyAppState();
State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
Expand Down Expand Up @@ -89,19 +89,19 @@ class _MyAppState extends State<MyApp> {
title: Row(
children: <Widget>[
Flexible(
flex: 1,
child: Text(snapshot.loadedData!
.get<int>('order')
.toString()),
flex: 1,
),
Flexible(
flex: 10,
child: Container(
alignment: Alignment.center,
child: Text(
snapshot.loadedData!.get<String>('text')!,
),
),
flex: 10,
),
],
),
Expand Down Expand Up @@ -132,7 +132,7 @@ class ObjectForm extends StatefulWidget {
const ObjectForm({Key? key}) : super(key: key);

@override
_ObjectFormState createState() => _ObjectFormState();
State<ObjectForm> createState() => _ObjectFormState();
}

class _ObjectFormState extends State<ObjectForm> {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/utils/parse_live_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ParseLiveGridWidget<T extends sdk.ParseObject> extends StatefulWidget {
final double childAspectRatio;

@override
_ParseLiveGridWidgetState<T> createState() => _ParseLiveGridWidgetState<T>();
State<ParseLiveGridWidget<T>> createState() => _ParseLiveGridWidgetState<T>();

static Widget defaultChildBuilder<T extends sdk.ParseObject>(
BuildContext context, sdk.ParseLiveListElementSnapshot<T> snapshot) {
Expand Down
6 changes: 3 additions & 3 deletions packages/flutter/lib/src/utils/parse_live_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ParseLiveListWidget<T extends sdk.ParseObject> extends StatefulWidget {
final List<String>? preloadedColumns;

@override
_ParseLiveListWidgetState<T> createState() => _ParseLiveListWidgetState<T>();
State<ParseLiveListWidget<T>> createState() => _ParseLiveListWidgetState<T>();

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

@override
_ParseLiveListElementWidgetState<T> createState() {
State<ParseLiveListElementWidget<T>> createState() {
return _ParseLiveListElementWidgetState<T>();
}
}
Expand Down Expand Up @@ -272,9 +272,9 @@ class _ParseLiveListElementWidgetState<T extends sdk.ParseObject>
sizeFactor: widget.sizeFactor,
child: AnimatedSize(
duration: widget.duration,
child: widget.childBuilder(context, _snapshot),
// ignore: deprecated_member_use
vsync: this,
child: widget.childBuilder(context, _snapshot),
),
);
return result;
Expand Down
22 changes: 11 additions & 11 deletions packages/flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ dependencies:
flutter:
sdk: flutter

parse_server_sdk: ^3.1.2
parse_server_sdk: ^4.0.0
# Uncomment for local testing
#parse_server_sdk:
# path: ../dart

# Networking
dio: ^4.0.6
connectivity_plus: ^2.3.2 # only used in the flutter part
dio: ^5.0.1
connectivity_plus: ^3.0.3 # only used in the flutter part

#Database
shared_preferences: ^2.0.15 # only used in the flutter part
shared_preferences: ^2.0.18 # only used in the flutter part

# Utils
path_provider: ^2.0.10 # only used in the flutter part
package_info_plus: ^1.4.2 # only used in the flutter part
sembast: ^3.2.0
sembast_web: ^2.0.1+1
path: ^1.8.1 # required for transitive use only
path_provider: ^2.0.13 # only used in the flutter part
package_info_plus: ^3.0.3 # only used in the flutter part
sembast: ^3.4.0+6
sembast_web: ^2.1.0+4
path: ^1.8.2 # required for transitive use only
platform: ^3.1.0

dev_dependencies:
flutter_lints: ^1.0.4
flutter_lints: ^2.0.1
# Testing
flutter_test:
sdk: flutter
mockito: ^5.2.0
mockito: ^5.3.2
path_provider_platform_interface: ^2.0.6
plugin_platform_interface: ^2.1.4