chore: Update dependencies

This commit is contained in:
Christian Pauly 2021-07-08 17:20:38 +02:00
parent 0bf5792c80
commit 8fef28ae87
5 changed files with 171 additions and 92 deletions

View File

@ -22,6 +22,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
bool error = false;
String _recordedPath;
final _audioRecorder = Record();
void startRecording() async {
try {
@ -29,12 +30,13 @@ class _RecordingDialogState extends State<RecordingDialog> {
_recordedPath =
'${tempDir.path}/recording${DateTime.now().microsecondsSinceEpoch}.${RecordingDialog.recordingFileType}';
final result = await Record.hasPermission();
final result = await _audioRecorder.hasPermission();
if (result != true) {
setState(() => error = true);
return;
}
await Record.start(path: _recordedPath, encoder: AudioEncoder.AAC);
await _audioRecorder.start(
path: _recordedPath, encoder: AudioEncoder.AAC);
setState(() => _duration = Duration.zero);
_recorderSubscription?.cancel();
_recorderSubscription = Timer.periodic(Duration(seconds: 1),
@ -54,7 +56,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
@override
void dispose() {
_recorderSubscription?.cancel();
Record.stop();
_audioRecorder.stop();
super.dispose();
}
@ -110,7 +112,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
TextButton(
onPressed: () async {
_recorderSubscription?.cancel();
await Record.stop();
await _audioRecorder.stop();
Navigator.of(context, rootNavigator: false)
.pop<String>(_recordedPath);
},

View File

@ -4,13 +4,13 @@
#include "generated_plugin_registrant.h"
#include <file_chooser/file_chooser_plugin.h>
#include <file_selector_linux/file_selector_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_chooser_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileChooserPlugin");
file_chooser_plugin_register_with_registrar(file_chooser_registrar);
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);

View File

@ -3,7 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
file_chooser
file_selector_linux
url_launcher_linux
)

View File

@ -14,7 +14,7 @@ packages:
name: adaptive_dialog
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.0+5"
version: "1.0.1"
adaptive_theme:
dependency: "direct main"
description:
@ -43,13 +43,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.2"
args:
dependency: transitive
description:
@ -70,7 +63,7 @@ packages:
name: audioplayers
url: "https://pub.dartlang.org"
source: hosted
version: "0.19.0"
version: "0.19.1"
base58check:
dependency: transitive
description:
@ -148,6 +141,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.1+3"
crypto:
dependency: transitive
description:
@ -182,21 +182,21 @@ packages:
name: dbus
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.5.2"
desktop_notifications:
dependency: "direct main"
description:
name: desktop_notifications
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.0"
disk_space_ns:
version: "0.5.0"
disk_space:
dependency: transitive
description:
name: disk_space_ns
name: disk_space
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
version: "0.1.1"
email_validator:
dependency: "direct main"
description:
@ -210,7 +210,7 @@ packages:
name: emoji_picker_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "1.0.6"
fake_async:
dependency: transitive
description:
@ -241,27 +241,62 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.0"
file_chooser:
dependency: transitive
description:
name: file_chooser
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.6"
file_picker:
dependency: transitive
description:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.0.3"
file_picker_cross:
dependency: "direct main"
description:
name: file_picker_cross
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.2"
version: "4.4.2"
file_selector:
dependency: transitive
description:
name: file_selector
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.2"
file_selector_linux:
dependency: transitive
description:
name: file_selector_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2"
file_selector_macos:
dependency: transitive
description:
name: file_selector_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
file_selector_platform_interface:
dependency: transitive
description:
name: file_selector_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
file_selector_web:
dependency: transitive
description:
name: file_selector_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.1"
file_selector_windows:
dependency: transitive
description:
name: file_selector_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2"
firebase_core:
dependency: transitive
description:
@ -308,7 +343,7 @@ packages:
name: flutter_cache_manager
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.1.2"
flutter_highlight:
dependency: transitive
description:
@ -343,14 +378,14 @@ packages:
name: flutter_local_notifications
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0+1"
version: "6.0.0"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
name: flutter_local_notifications_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "4.0.0"
flutter_localizations:
dependency: "direct main"
description: flutter
@ -362,7 +397,7 @@ packages:
name: flutter_math_fork
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0+2"
version: "0.3.3+1"
flutter_matrix_html:
dependency: "direct main"
description:
@ -411,7 +446,7 @@ packages:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.21.0+1"
version: "0.22.0"
flutter_test:
dependency: "direct dev"
description: flutter
@ -423,7 +458,7 @@ packages:
name: flutter_typeahead
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.1"
version: "3.1.3"
flutter_web_plugins:
dependency: transitive
description: flutter
@ -435,7 +470,7 @@ packages:
name: future_loading_dialog
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.2.1"
glob:
dependency: transitive
description:
@ -463,7 +498,7 @@ packages:
name: hive_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.1.0"
html:
dependency: transitive
description:
@ -484,7 +519,7 @@ packages:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.1"
version: "0.13.3"
http_multi_server:
dependency: transitive
description:
@ -499,20 +534,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.4"
version: "0.8.1+3"
image_picker_for_web:
dependency: transitive
description:
@ -682,14 +710,14 @@ packages:
name: open_file
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.0"
version: "3.2.1"
open_noti_settings:
dependency: "direct main"
description:
name: open_noti_settings
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
version: "0.2.0"
package_config:
dependency: transitive
description:
@ -697,13 +725,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info:
dependency: transitive
description:
name: package_info
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
package_info_plus:
dependency: "direct main"
description:
@ -773,7 +794,7 @@ packages:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.0.2"
path_provider_linux:
dependency: transitive
description:
@ -815,21 +836,21 @@ packages:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.11.0"
version: "1.11.1"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.3"
version: "8.1.2"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.0"
version: "3.6.0"
petitparser:
dependency: transitive
description:
@ -913,7 +934,21 @@ packages:
name: record
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "3.0.0"
record_platform_interface:
dependency: transitive
description:
name: record_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
record_web:
dependency: transitive
description:
name: record_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
rxdart:
dependency: transitive
description:
@ -934,14 +969,56 @@ packages:
name: sentry
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "5.1.0"
share:
dependency: "direct main"
description:
name: share
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
share_plus:
dependency: transitive
description:
name: share_plus
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
share_plus_linux:
dependency: transitive
description:
name: share_plus_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
share_plus_macos:
dependency: transitive
description:
name: share_plus_macos
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
share_plus_web:
dependency: transitive
description:
name: share_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
share_plus_windows:
dependency: transitive
description:
name: share_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
shared_preferences:
dependency: transitive
description:
@ -1135,7 +1212,7 @@ packages:
name: tuple
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0-nullsafety.0"
version: "2.0.0"
typed_data:
dependency: transitive
description:
@ -1170,7 +1247,7 @@ packages:
name: unifiedpush
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.0.6"
universal_html:
dependency: "direct main"
description:
@ -1198,7 +1275,7 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.3"
version: "6.0.9"
url_launcher_linux:
dependency: transitive
description:
@ -1219,7 +1296,7 @@ packages:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
version: "2.0.4"
url_launcher_web:
dependency: transitive
description:
@ -1320,4 +1397,4 @@ packages:
version: "3.1.0"
sdks:
dart: ">=2.13.0 <3.0.0"
flutter: ">=2.0.2"
flutter: ">=2.2.0"

View File

@ -7,26 +7,26 @@ environment:
sdk: ">=2.6.0 <3.0.0"
dependencies:
adaptive_dialog: ^0.10.0+5
adaptive_dialog: ^1.0.1
adaptive_theme: ^2.2.0
android_path_provider: ^0.2.1
audioplayers: ^0.19.0
audioplayers: ^0.19.1
cached_network_image: ^3.0.0
cupertino_icons: any
desktop_notifications: ^0.4.0
desktop_notifications: ^0.5.0
email_validator: ^2.0.1
emoji_picker_flutter: ^1.0.5
emoji_picker_flutter: ^1.0.6
fcm_shared_isolate:
git:
url: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
ref: main
file_picker_cross: ^4.3.2
file_picker_cross: ^4.4.2
flutter:
sdk: flutter
flutter_app_lock: ^1.5.0
flutter_blurhash: ^0.6.0
flutter_cache_manager: ^3.0.1
flutter_local_notifications: ^5.0.0+1
flutter_cache_manager: ^3.1.2
flutter_local_notifications: ^6.0.0
flutter_localizations:
sdk: flutter
flutter_matrix_html: ^0.3.0
@ -34,11 +34,11 @@ dependencies:
flutter_openssl_crypto: ^0.0.1
flutter_secure_storage: 3.3.5 # Do not upgrade or this will break Linux builds!
flutter_slidable: ^0.6.0
flutter_svg: ^0.21.0+1
flutter_typeahead: ^3.1.1
future_loading_dialog: ^0.1.2
hive_flutter: ^1.0.0
image_picker: ^0.7.4
flutter_svg: ^0.22.0
flutter_typeahead: ^3.1.3
future_loading_dialog: ^0.2.1
hive_flutter: ^1.1.0
image_picker: ^0.8.1+3
intl: any
localstorage: ^4.0.0+1
matrix: ^0.1.6
@ -47,30 +47,30 @@ dependencies:
git:
url: https://gitlab.com/famedly/libraries/native_imaging.git
ref: master
open_file: ^3.2.0
open_noti_settings: ^0.1.0
open_file: ^3.2.1
open_noti_settings: ^0.2.0
package_info_plus: ^1.0.3
path_provider: ^2.0.1
permission_handler: ^6.1.3
path_provider: ^2.0.2
permission_handler: ^8.1.2
pin_code_text_field: ^1.8.0
provider: ^5.0.0
receive_sharing_intent: ^1.4.5
record: ^2.1.1
record: ^3.0.0
scroll_to_index: ^2.0.0
sentry: ^5.0.0
share: ^2.0.1
sentry: ^5.1.0
share: ^2.0.4
swipe_to_action: ^0.1.0
uni_links: ^0.5.1
unifiedpush: ^1.0.2
unifiedpush: ^1.0.6
universal_html: ^2.0.8
url_launcher: ^6.0.3
url_launcher: ^6.0.9
vrouter: ^1.2.0+4
dev_dependencies:
dapackages: ^1.6.0
flutter_test:
sdk: flutter
pedantic: ^1.11.0
pedantic: ^1.11.1
flutter:
generate: true