Browse Source

upgrade flutter

pull/18/head
Sun 4 years ago
parent
commit
fecb9d9be7
  1. 10
      core/pubspec.lock
  2. 9
      lib/widgets/audio_recorder.dart
  3. 62
      pubspec.lock

10
core/pubspec.lock

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.5.0" version: "2.7.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -28,7 +28,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.1"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -73,7 +73,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.0" version: "1.4.0"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -127,7 +127,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.19" version: "0.4.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -143,5 +143,5 @@ packages:
source: hosted source: hosted
version: "2.1.0" version: "2.1.0"
sdks: sdks:
dart: ">=2.12.0-0.0 <3.0.0" dart: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0" flutter: ">=1.20.0"

9
lib/widgets/audio_recorder.dart

@ -19,6 +19,7 @@ class AudioRecorder extends StatefulWidget {
class _AudioRecorderState extends State<AudioRecorder> { class _AudioRecorderState extends State<AudioRecorder> {
final player = AudioPlayer(); final player = AudioPlayer();
final _record = Record();
bool _isRecording = false; bool _isRecording = false;
bool _isPlaying = false; bool _isPlaying = false;
@ -55,10 +56,10 @@ class _AudioRecorderState extends State<AudioRecorder> {
Future<void> _start() async { Future<void> _start() async {
try { try {
if (await Record.hasPermission()) { if (await _record.hasPermission()) {
await Record.start(path: widget.path); await _record.start(path: widget.path);
bool isRecording = await Record.isRecording(); bool isRecording = await _record.isRecording();
setState(() { setState(() {
_isRecording = isRecording; _isRecording = isRecording;
_remainingDuration = 0; _remainingDuration = 0;
@ -73,7 +74,7 @@ class _AudioRecorderState extends State<AudioRecorder> {
Future<void> _stop() async { Future<void> _stop() async {
_timer?.cancel(); _timer?.cancel();
await Record.stop(); await _record.stop();
print(widget.path); print(widget.path);
setState(() { setState(() {

62
pubspec.lock

@ -28,7 +28,7 @@ packages:
name: audio_session name: audio_session
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.2" version: "0.1.5"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -49,7 +49,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.1"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -77,7 +77,7 @@ packages:
name: convert name: convert
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.1"
crop: crop:
dependency: "direct main" dependency: "direct main"
description: description:
@ -105,42 +105,42 @@ packages:
name: device_info_plus name: device_info_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.1"
device_info_plus_linux: device_info_plus_linux:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_linux name: device_info_plus_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.0"
device_info_plus_macos: device_info_plus_macos:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_macos name: device_info_plus_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.0"
device_info_plus_platform_interface: device_info_plus_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_platform_interface name: device_info_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "2.0.0"
device_info_plus_web: device_info_plus_web:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_web name: device_info_plus_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.0"
device_info_plus_windows: device_info_plus_windows:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_windows name: device_info_plus_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.0"
esse_core: esse_core:
dependency: "direct main" dependency: "direct main"
description: description:
@ -168,14 +168,14 @@ packages:
name: file name: file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.1" version: "6.1.2"
file_picker: file_picker:
dependency: "direct main" dependency: "direct main"
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.2+2" version: "3.0.3"
file_selector: file_selector:
dependency: "direct main" dependency: "direct main"
description: description:
@ -309,7 +309,7 @@ packages:
name: image_picker name: image_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.0+1" version: "0.8.1+3"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
@ -349,21 +349,21 @@ packages:
name: just_audio name: just_audio
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.7.5" version: "0.8.0"
just_audio_platform_interface: just_audio_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: just_audio_platform_interface name: just_audio_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.1.0"
just_audio_web: just_audio_web:
dependency: transitive dependency: transitive
description: description:
name: just_audio_web name: just_audio_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.1" version: "0.3.2"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:
@ -440,7 +440,7 @@ 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"
percent_indicator: percent_indicator:
dependency: "direct main" dependency: "direct main"
description: description:
@ -454,14 +454,14 @@ packages:
name: permission_handler name: permission_handler
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.0.1" 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.5.1" version: "3.6.0"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
@ -503,7 +503,7 @@ packages:
name: qr name: qr
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.1.0"
qr_code_scanner: qr_code_scanner:
dependency: "direct main" dependency: "direct main"
description: description:
@ -524,7 +524,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:
@ -627,7 +641,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.0" version: "0.4.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -648,7 +662,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.6" version: "6.0.8"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:
@ -704,7 +718,7 @@ packages:
name: vm_service name: vm_service
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.2.0" version: "7.1.0"
web_socket_channel: web_socket_channel:
dependency: "direct main" dependency: "direct main"
description: description:
@ -725,7 +739,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.4" version: "2.2.4"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:

Loading…
Cancel
Save