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

View File

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

View File

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

View File

@ -14,7 +14,7 @@ packages:
name: adaptive_dialog name: adaptive_dialog
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.10.0+5" version: "1.0.1"
adaptive_theme: adaptive_theme:
dependency: "direct main" dependency: "direct main"
description: description:
@ -43,13 +43,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.0.0"
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.2"
args: args:
dependency: transitive dependency: transitive
description: description:
@ -70,7 +63,7 @@ packages:
name: audioplayers name: audioplayers
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.19.0" version: "0.19.1"
base58check: base58check:
dependency: transitive dependency: transitive
description: description:
@ -148,6 +141,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" 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: crypto:
dependency: transitive dependency: transitive
description: description:
@ -182,21 +182,21 @@ packages:
name: dbus name: dbus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.3" version: "0.5.2"
desktop_notifications: desktop_notifications:
dependency: "direct main" dependency: "direct main"
description: description:
name: desktop_notifications name: desktop_notifications
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.0" version: "0.5.0"
disk_space_ns: disk_space:
dependency: transitive dependency: transitive
description: description:
name: disk_space_ns name: disk_space
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.0" version: "0.1.1"
email_validator: email_validator:
dependency: "direct main" dependency: "direct main"
description: description:
@ -210,7 +210,7 @@ packages:
name: emoji_picker_flutter name: emoji_picker_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.5" version: "1.0.6"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:
@ -241,27 +241,62 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.0" 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: file_picker:
dependency: transitive dependency: transitive
description: description:
name: file_picker name: file_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.3"
file_picker_cross: file_picker_cross:
dependency: "direct main" dependency: "direct main"
description: description:
name: file_picker_cross name: file_picker_cross
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted 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: firebase_core:
dependency: transitive dependency: transitive
description: description:
@ -308,7 +343,7 @@ packages:
name: flutter_cache_manager name: flutter_cache_manager
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.1.2"
flutter_highlight: flutter_highlight:
dependency: transitive dependency: transitive
description: description:
@ -343,14 +378,14 @@ packages:
name: flutter_local_notifications name: flutter_local_notifications
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.0+1" version: "6.0.0"
flutter_local_notifications_platform_interface: flutter_local_notifications_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_platform_interface name: flutter_local_notifications_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "4.0.0"
flutter_localizations: flutter_localizations:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -362,7 +397,7 @@ packages:
name: flutter_math_fork name: flutter_math_fork
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.0+2" version: "0.3.3+1"
flutter_matrix_html: flutter_matrix_html:
dependency: "direct main" dependency: "direct main"
description: description:
@ -411,7 +446,7 @@ packages:
name: flutter_svg name: flutter_svg
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.21.0+1" version: "0.22.0"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -423,7 +458,7 @@ packages:
name: flutter_typeahead name: flutter_typeahead
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.1.1" version: "3.1.3"
flutter_web_plugins: flutter_web_plugins:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -435,7 +470,7 @@ packages:
name: future_loading_dialog name: future_loading_dialog
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.2" version: "0.2.1"
glob: glob:
dependency: transitive dependency: transitive
description: description:
@ -463,7 +498,7 @@ packages:
name: hive_flutter name: hive_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.1.0"
html: html:
dependency: transitive dependency: transitive
description: description:
@ -484,7 +519,7 @@ packages:
name: http name: http
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.13.1" version: "0.13.3"
http_multi_server: http_multi_server:
dependency: transitive dependency: transitive
description: description:
@ -499,20 +534,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
image_picker: image_picker:
dependency: "direct main" dependency: "direct main"
description: description:
name: image_picker name: image_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.7.4" version: "0.8.1+3"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
@ -682,14 +710,14 @@ packages:
name: open_file name: open_file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.0" version: "3.2.1"
open_noti_settings: open_noti_settings:
dependency: "direct main" dependency: "direct main"
description: description:
name: open_noti_settings name: open_noti_settings
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.0" version: "0.2.0"
package_config: package_config:
dependency: transitive dependency: transitive
description: description:
@ -697,13 +725,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" 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: package_info_plus:
dependency: "direct main" dependency: "direct main"
description: description:
@ -773,7 +794,7 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "2.0.2"
path_provider_linux: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
@ -815,21 +836,21 @@ packages:
name: pedantic name: pedantic
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.11.0" version: "1.11.1"
permission_handler: permission_handler:
dependency: "direct main" dependency: "direct main"
description: description:
name: permission_handler name: permission_handler
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.3" version: "8.1.2"
permission_handler_platform_interface: permission_handler_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: permission_handler_platform_interface name: permission_handler_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.0" version: "3.6.0"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
@ -913,7 +934,21 @@ packages:
name: record name: record
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted 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: rxdart:
dependency: transitive dependency: transitive
description: description:
@ -934,14 +969,56 @@ packages:
name: sentry name: sentry
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.0" version: "5.1.0"
share: share:
dependency: "direct main" dependency: "direct main"
description: description:
name: share name: share
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted 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" 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: shared_preferences:
dependency: transitive dependency: transitive
description: description:
@ -1135,7 +1212,7 @@ packages:
name: tuple name: tuple
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0-nullsafety.0" version: "2.0.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -1170,7 +1247,7 @@ packages:
name: unifiedpush name: unifiedpush
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.3" version: "1.0.6"
universal_html: universal_html:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1198,7 +1275,7 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.3" version: "6.0.9"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:
@ -1219,7 +1296,7 @@ packages:
name: url_launcher_platform_interface name: url_launcher_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.4"
url_launcher_web: url_launcher_web:
dependency: transitive dependency: transitive
description: description:
@ -1320,4 +1397,4 @@ packages:
version: "3.1.0" version: "3.1.0"
sdks: sdks:
dart: ">=2.13.0 <3.0.0" 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" sdk: ">=2.6.0 <3.0.0"
dependencies: dependencies:
adaptive_dialog: ^0.10.0+5 adaptive_dialog: ^1.0.1
adaptive_theme: ^2.2.0 adaptive_theme: ^2.2.0
android_path_provider: ^0.2.1 android_path_provider: ^0.2.1
audioplayers: ^0.19.0 audioplayers: ^0.19.1
cached_network_image: ^3.0.0 cached_network_image: ^3.0.0
cupertino_icons: any cupertino_icons: any
desktop_notifications: ^0.4.0 desktop_notifications: ^0.5.0
email_validator: ^2.0.1 email_validator: ^2.0.1
emoji_picker_flutter: ^1.0.5 emoji_picker_flutter: ^1.0.6
fcm_shared_isolate: fcm_shared_isolate:
git: git:
url: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git url: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
ref: main ref: main
file_picker_cross: ^4.3.2 file_picker_cross: ^4.4.2
flutter: flutter:
sdk: flutter sdk: flutter
flutter_app_lock: ^1.5.0 flutter_app_lock: ^1.5.0
flutter_blurhash: ^0.6.0 flutter_blurhash: ^0.6.0
flutter_cache_manager: ^3.0.1 flutter_cache_manager: ^3.1.2
flutter_local_notifications: ^5.0.0+1 flutter_local_notifications: ^6.0.0
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
flutter_matrix_html: ^0.3.0 flutter_matrix_html: ^0.3.0
@ -34,11 +34,11 @@ dependencies:
flutter_openssl_crypto: ^0.0.1 flutter_openssl_crypto: ^0.0.1
flutter_secure_storage: 3.3.5 # Do not upgrade or this will break Linux builds! flutter_secure_storage: 3.3.5 # Do not upgrade or this will break Linux builds!
flutter_slidable: ^0.6.0 flutter_slidable: ^0.6.0
flutter_svg: ^0.21.0+1 flutter_svg: ^0.22.0
flutter_typeahead: ^3.1.1 flutter_typeahead: ^3.1.3
future_loading_dialog: ^0.1.2 future_loading_dialog: ^0.2.1
hive_flutter: ^1.0.0 hive_flutter: ^1.1.0
image_picker: ^0.7.4 image_picker: ^0.8.1+3
intl: any intl: any
localstorage: ^4.0.0+1 localstorage: ^4.0.0+1
matrix: ^0.1.6 matrix: ^0.1.6
@ -47,30 +47,30 @@ dependencies:
git: git:
url: https://gitlab.com/famedly/libraries/native_imaging.git url: https://gitlab.com/famedly/libraries/native_imaging.git
ref: master ref: master
open_file: ^3.2.0 open_file: ^3.2.1
open_noti_settings: ^0.1.0 open_noti_settings: ^0.2.0
package_info_plus: ^1.0.3 package_info_plus: ^1.0.3
path_provider: ^2.0.1 path_provider: ^2.0.2
permission_handler: ^6.1.3 permission_handler: ^8.1.2
pin_code_text_field: ^1.8.0 pin_code_text_field: ^1.8.0
provider: ^5.0.0 provider: ^5.0.0
receive_sharing_intent: ^1.4.5 receive_sharing_intent: ^1.4.5
record: ^2.1.1 record: ^3.0.0
scroll_to_index: ^2.0.0 scroll_to_index: ^2.0.0
sentry: ^5.0.0 sentry: ^5.1.0
share: ^2.0.1 share: ^2.0.4
swipe_to_action: ^0.1.0 swipe_to_action: ^0.1.0
uni_links: ^0.5.1 uni_links: ^0.5.1
unifiedpush: ^1.0.2 unifiedpush: ^1.0.6
universal_html: ^2.0.8 universal_html: ^2.0.8
url_launcher: ^6.0.3 url_launcher: ^6.0.9
vrouter: ^1.2.0+4 vrouter: ^1.2.0+4
dev_dependencies: dev_dependencies:
dapackages: ^1.6.0 dapackages: ^1.6.0
flutter_test: flutter_test:
sdk: flutter sdk: flutter
pedantic: ^1.11.0 pedantic: ^1.11.1
flutter: flutter:
generate: true generate: true