Browse Source

Merge pull request #185 from provokateurin/feature/flutter-3.7.0

Update to flutter 3.7.0
pull/186/head
Kate 2 years ago committed by GitHub
parent
commit
c8939b808f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .fvm/fvm_config.json
  2. 2
      packages/dynamite/pubspec.yaml
  3. 4
      packages/file_icons/pubspec.yaml
  4. 3
      packages/neon/android/build.gradle
  5. 2
      packages/neon/lib/src/apps/files/dialogs/choose_create.dart
  6. 2
      packages/neon/lib/src/apps/files/pages/main.dart
  7. 5
      packages/neon/lib/src/apps/files/widgets/browser_view.dart
  8. 2
      packages/neon/lib/src/apps/news/pages/article.dart
  9. 2
      packages/neon/lib/src/apps/news/widgets/articles_view.dart
  10. 4
      packages/neon/lib/src/apps/news/widgets/feeds_view.dart
  11. 4
      packages/neon/lib/src/apps/news/widgets/folders_view.dart
  12. 5
      packages/neon/lib/src/pages/account_settings.dart
  13. 2
      packages/neon/lib/src/pages/nextcloud_app_settings.dart
  14. 1
      packages/neon/lib/src/pages/settings.dart
  15. 2
      packages/neon/lib/src/widgets/neon_logo.dart
  16. 693
      packages/neon/pubspec.lock
  17. 4
      packages/neon/pubspec.yaml
  18. 2
      packages/nextcloud/lib/nextcloud.dart
  19. 2
      packages/nextcloud/pubspec.yaml
  20. 4
      packages/nextcloud_push_proxy/lib/nextcloud_push_proxy.dart
  21. 2
      packages/nextcloud_push_proxy/pubspec.yaml
  22. 2
      packages/nextcloud_test/pubspec.yaml
  23. 2
      packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart
  24. 4
      packages/settings/pubspec.yaml
  25. 2
      packages/sort_box/lib/sort_box.dart
  26. 2
      packages/sort_box/pubspec.yaml
  27. 2
      packages/spec_templates/pubspec.yaml

2
.fvm/fvm_config.json

@ -1,4 +1,4 @@
{ {
"flutterSdkVersion": "3.3.10@stable", "flutterSdkVersion": "3.7.0@stable",
"flavors": {} "flavors": {}
} }

2
packages/dynamite/pubspec.yaml

@ -2,7 +2,7 @@ name: dynamite
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dependencies: dependencies:
build: ^2.3.1 build: ^2.3.1

4
packages/file_icons/pubspec.yaml

@ -2,8 +2,8 @@ name: file_icons
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
flutter: '>=3.3.10' flutter: '>=3.7.0'
dependencies: dependencies:
flutter: flutter:

3
packages/neon/android/build.gradle

@ -1,5 +1,5 @@
buildscript { buildscript {
ext.kotlin_version = '1.6.10' ext.kotlin_version = '1.8.0'
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
@ -15,6 +15,7 @@ allprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven { url "https://jitpack.io" }
} }
} }

2
packages/neon/lib/src/apps/files/dialogs/choose_create.dart

@ -32,8 +32,10 @@ class _FilesChooseCreateDialogState extends State<FilesChooseCreateDialog> {
if (sizeWarning != null) { if (sizeWarning != null) {
final stat = file.statSync(); final stat = file.statSync();
if (stat.size > sizeWarning) { if (stat.size > sizeWarning) {
// ignore: use_build_context_synchronously
if (!(await showConfirmationDialog( if (!(await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).filesConfirmUploadSizeWarning( AppLocalizations.of(context).filesConfirmUploadSizeWarning(
filesize(sizeWarning), filesize(sizeWarning),
filesize(stat.size), filesize(stat.size),

2
packages/neon/lib/src/apps/files/pages/main.dart

@ -29,8 +29,10 @@ class _FilesMainPageState extends State<FilesMainPage> {
onPickFile: (final details) async { onPickFile: (final details) async {
final sizeWarning = widget.bloc.options.downloadSizeWarning.value; final sizeWarning = widget.bloc.options.downloadSizeWarning.value;
if (sizeWarning != null && details.size > sizeWarning) { if (sizeWarning != null && details.size > sizeWarning) {
// ignore: use_build_context_synchronously
if (!(await showConfirmationDialog( if (!(await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).filesConfirmDownloadSizeWarning( AppLocalizations.of(context).filesConfirmDownloadSizeWarning(
filesize(sizeWarning), filesize(sizeWarning),
filesize(details.size), filesize(details.size),

5
packages/neon/lib/src/apps/files/widgets/browser_view.dart

@ -382,8 +382,10 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
case FilesFileAction.sync: case FilesFileAction.sync:
final sizeWarning = widget.bloc.options.downloadSizeWarning.value; final sizeWarning = widget.bloc.options.downloadSizeWarning.value;
if (sizeWarning != null && details.size > sizeWarning) { if (sizeWarning != null && details.size > sizeWarning) {
// ignore: use_build_context_synchronously
if (!(await showConfirmationDialog( if (!(await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).filesConfirmDownloadSizeWarning( AppLocalizations.of(context).filesConfirmDownloadSizeWarning(
filesize(sizeWarning), filesize(sizeWarning),
filesize(details.size), filesize(details.size),
@ -395,10 +397,13 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
widget.filesBloc.syncFile(details.path); widget.filesBloc.syncFile(details.path);
break; break;
case FilesFileAction.delete: case FilesFileAction.delete:
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
details.isDirectory details.isDirectory
// ignore: use_build_context_synchronously
? AppLocalizations.of(context).filesDeleteFolderConfirm(details.name) ? AppLocalizations.of(context).filesDeleteFolderConfirm(details.name)
// ignore: use_build_context_synchronously
: AppLocalizations.of(context).filesDeleteFileConfirm(details.name), : AppLocalizations.of(context).filesDeleteFileConfirm(details.name),
)) { )) {
widget.filesBloc.delete(details.path); widget.filesBloc.delete(details.path);

2
packages/neon/lib/src/apps/news/pages/article.dart

@ -89,7 +89,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
return false; return false;
} }
if (Provider.of<NeonPlatform>(context, listen: false).canUseWakelock) { if (mounted && Provider.of<NeonPlatform>(context, listen: false).canUseWakelock) {
await Wakelock.disable(); await Wakelock.disable();
} }
return true; return true;

2
packages/neon/lib/src/apps/news/widgets/articles_view.dart

@ -115,7 +115,7 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
article.title, article.title,
style: article.unread style: article.unread
? null ? null
: Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor), : Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor),
), ),
), ),
if (article.mediaThumbnail != null) ...[ if (article.mediaThumbnail != null) ...[

4
packages/neon/lib/src/apps/news/widgets/feeds_view.dart

@ -66,7 +66,7 @@ class NewsFeedsView extends StatelessWidget {
title: Text( title: Text(
feed.title, feed.title,
style: feed.unreadCount! == 0 style: feed.unreadCount! == 0
? Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor) ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor)
: null, : null,
), ),
subtitle: feed.unreadCount! > 0 subtitle: feed.unreadCount! > 0
@ -130,8 +130,10 @@ class NewsFeedsView extends StatelessWidget {
); );
break; break;
case NewsFeedAction.delete: case NewsFeedAction.delete:
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).newsRemoveFeedConfirm(feed.title), AppLocalizations.of(context).newsRemoveFeedConfirm(feed.title),
)) { )) {
bloc.removeFeed(feed.id); bloc.removeFeed(feed.id);

4
packages/neon/lib/src/apps/news/widgets/folders_view.dart

@ -64,7 +64,7 @@ class NewsFoldersView extends StatelessWidget {
title: Text( title: Text(
folderFeedsWrapper.folder.name, folderFeedsWrapper.folder.name,
style: unreadCount == 0 style: unreadCount == 0
? Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor) ? Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor)
: null, : null,
), ),
subtitle: unreadCount > 0 subtitle: unreadCount > 0
@ -107,8 +107,10 @@ class NewsFoldersView extends StatelessWidget {
onSelected: (final action) async { onSelected: (final action) async {
switch (action) { switch (action) {
case NewsFolderAction.delete: case NewsFolderAction.delete:
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).newsDeleteFolderConfirm(folderFeedsWrapper.folder.name), AppLocalizations.of(context).newsDeleteFolderConfirm(folderFeedsWrapper.folder.name),
)) { )) {
bloc.deleteFolder(folderFeedsWrapper.folder.id); bloc.deleteFolder(folderFeedsWrapper.folder.id);

5
packages/neon/lib/src/pages/account_settings.dart

@ -22,11 +22,14 @@ class AccountSettingsPage extends StatelessWidget {
actions: [ actions: [
IconButton( IconButton(
onPressed: () async { onPressed: () async {
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).accountOptionsRemoveConfirm(account.client.humanReadableID), AppLocalizations.of(context).accountOptionsRemoveConfirm(account.client.humanReadableID),
)) { )) {
bloc.removeAccount(account); bloc.removeAccount(account);
// ignore: use_build_context_synchronously
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
}, },
@ -34,8 +37,10 @@ class AccountSettingsPage extends StatelessWidget {
), ),
IconButton( IconButton(
onPressed: () async { onPressed: () async {
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).settingsResetForConfirmation(_name), AppLocalizations.of(context).settingsResetForConfirmation(_name),
)) { )) {
await _options.reset(); await _options.reset();

2
packages/neon/lib/src/pages/nextcloud_app_settings.dart

@ -16,8 +16,10 @@ class NextcloudAppSettingsPage extends StatelessWidget {
actions: [ actions: [
IconButton( IconButton(
onPressed: () async { onPressed: () async {
// ignore: use_build_context_synchronously
if (await showConfirmationDialog( if (await showConfirmationDialog(
context, context,
// ignore: use_build_context_synchronously
AppLocalizations.of(context).settingsResetForConfirmation(appImplementation.name(context)), AppLocalizations.of(context).settingsResetForConfirmation(appImplementation.name(context)),
)) { )) {
await appImplementation.options.reset(); await appImplementation.options.reset();

1
packages/neon/lib/src/pages/settings.dart

@ -22,6 +22,7 @@ class _SettingsPageState extends State<SettingsPage> {
actions: [ actions: [
IconButton( IconButton(
onPressed: () async { onPressed: () async {
// ignore: use_build_context_synchronously
if (await showConfirmationDialog(context, AppLocalizations.of(context).settingsResetAllConfirmation)) { if (await showConfirmationDialog(context, AppLocalizations.of(context).settingsResetAllConfirmation)) {
await globalOptions.reset(); await globalOptions.reset();

2
packages/neon/lib/src/widgets/neon_logo.dart

@ -19,7 +19,7 @@ class NeonLogo extends StatelessWidget {
if (!withoutText) ...[ if (!withoutText) ...[
Text( Text(
AppLocalizations.of(context).appName, AppLocalizations.of(context).appName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.titleLarge,
), ),
], ],
], ],

693
packages/neon/pubspec.lock

File diff suppressed because it is too large Load Diff

4
packages/neon/pubspec.yaml

@ -3,8 +3,8 @@ version: 1.0.0
publish_to: 'none' publish_to: 'none'
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
flutter: '>=3.3.10' flutter: '>=3.7.0'
dependencies: dependencies:
collection: ^1.16.0 collection: ^1.16.0

2
packages/nextcloud/lib/nextcloud.dart

@ -11,7 +11,7 @@ import 'package:nextcloud/src/nextcloud.openapi.dart' as openapi;
import 'package:version/version.dart'; import 'package:version/version.dart';
import 'package:xml/xml.dart' as xml; import 'package:xml/xml.dart' as xml;
export 'package:crypton/crypton.dart' show RSAKeypair, RSAPublicKey, RSAPrivateKey; export 'package:crypton/crypton.dart' show RSAKeypair, RSAPrivateKey, RSAPublicKey;
export 'src/nextcloud.openapi.dart' hide NextcloudClient; export 'src/nextcloud.openapi.dart' hide NextcloudClient;

2
packages/nextcloud/pubspec.yaml

@ -2,7 +2,7 @@ name: nextcloud
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dependencies: dependencies:
cookie_jar: ^3.0.1 cookie_jar: ^3.0.1

4
packages/nextcloud_push_proxy/lib/nextcloud_push_proxy.dart

@ -1,7 +1,5 @@
// ignore_for_file: public_member_api_docs // ignore_for_file: public_member_api_docs
library nextcloud_push_proxy;
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
@ -86,7 +84,7 @@ class NextcloudPushProxy {
_onNewDeviceStream = _onNewDeviceController.stream.asBroadcastStream(); _onNewDeviceStream = _onNewDeviceController.stream.asBroadcastStream();
_onNewNotificationStream = _onNewNotificationController.stream.asBroadcastStream(); _onNewNotificationStream = _onNewNotificationController.stream.asBroadcastStream();
var handler = Cascade().add(_router).handler; var handler = Cascade().add(_router.call).handler;
if (logging) { if (logging) {
handler = logRequests().addHandler(handler); handler = logRequests().addHandler(handler);
} }

2
packages/nextcloud_push_proxy/pubspec.yaml

@ -2,7 +2,7 @@ name: nextcloud_push_proxy
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dependencies: dependencies:
crypto: ^3.0.2 crypto: ^3.0.2

2
packages/nextcloud_test/pubspec.yaml

@ -3,7 +3,7 @@ version: 1.0.0
publish_to: 'none' publish_to: 'none'
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dependencies: dependencies:
nextcloud: nextcloud:

2
packages/settings/lib/src/widgets/dropdown_button_settings_tile.dart

@ -31,7 +31,7 @@ class DropdownButtonSettingsTile<T> extends InputSettingsTile<SelectOption<T>> {
option.label(context), option.label(context),
style: enabledSnapshot.data ?? false style: enabledSnapshot.data ?? false
? null ? null
: Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor), : Theme.of(context).textTheme.titleMedium!.copyWith(color: Theme.of(context).disabledColor),
), ),
trailing: valuesSnapshot.hasData trailing: valuesSnapshot.hasData
? Container( ? Container(

4
packages/settings/pubspec.yaml

@ -2,8 +2,8 @@ name: settings
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
flutter: '>=3.3.10' flutter: '>=3.7.0'
dependencies: dependencies:
flutter: flutter:

2
packages/sort_box/lib/sort_box.dart

@ -1,7 +1,5 @@
// ignore_for_file: public_member_api_docs // ignore_for_file: public_member_api_docs
library sort_box;
class SortBox<T extends Enum, R> { class SortBox<T extends Enum, R> {
SortBox( SortBox(
this._properties, this._properties,

2
packages/sort_box/pubspec.yaml

@ -2,7 +2,7 @@ name: sort_box
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dev_dependencies: dev_dependencies:
nit_picking: nit_picking:

2
packages/spec_templates/pubspec.yaml

@ -3,7 +3,7 @@ version: 1.0.0
publish_to: 'none' publish_to: 'none'
environment: environment:
sdk: '>=2.18.0 <3.0.0' sdk: '>=2.19.0 <3.0.0'
dependencies: dependencies:
path: ^1.8.1 path: ^1.8.1

Loading…
Cancel
Save