2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Update packages

- Trying to find source of null check bug
This commit is contained in:
Oliver Walters 2022-03-29 19:43:38 +11:00
parent 139b166a5e
commit c78dd7cfa5
4 changed files with 71 additions and 35 deletions

View File

@ -91,7 +91,7 @@ class InvenTreeFileService extends FileService {
_client = client ?? HttpClient(); _client = client ?? HttpClient();
if (_client != null) { if (_client != null) {
_client?.badCertificateCallback = (cert, host, port) { _client!.badCertificateCallback = (cert, host, port) {
print("BAD CERTIFICATE CALLBACK FOR IMAGE REQUEST"); print("BAD CERTIFICATE CALLBACK FOR IMAGE REQUEST");
return !strictHttps; return !strictHttps;
}; };

View File

@ -69,6 +69,10 @@ class BarcodeHandler {
print("Scanned barcode data: ${barcode}"); print("Scanned barcode data: ${barcode}");
if (barcode.isEmpty) {
return;
}
var response = await InvenTreeAPI().post( var response = await InvenTreeAPI().post(
url, url,
body: { body: {
@ -491,7 +495,10 @@ class _QRViewState extends State<InvenTreeQRView> {
_controller = controller; _controller = controller;
controller.scannedDataStream.listen((barcode) { controller.scannedDataStream.listen((barcode) {
_controller?.pauseCamera(); _controller?.pauseCamera();
_handler.processBarcode(context, _controller, barcode.code);
if (barcode.code != null) {
_handler.processBarcode(context, _controller, barcode.code ?? "");
}
}); });
} }

View File

@ -7,7 +7,7 @@ packages:
name: archive name: archive
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.2" version: "3.3.0"
args: args:
dependency: transitive dependency: transitive
description: description:
@ -70,7 +70,7 @@ packages:
name: camera name: camera
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.9.4+16" version: "0.9.4+17"
camera_platform_interface: camera_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -147,7 +147,7 @@ packages:
name: device_info_plus name: device_info_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.0" version: "3.2.2"
device_info_plus_linux: device_info_plus_linux:
dependency: transitive dependency: transitive
description: description:
@ -255,7 +255,7 @@ packages:
name: flutter_markdown name: flutter_markdown
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.9" version: "0.6.9+1"
flutter_plugin_android_lifecycle: flutter_plugin_android_lifecycle:
dependency: transitive dependency: transitive
description: description:
@ -279,7 +279,7 @@ packages:
name: font_awesome_flutter name: font_awesome_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "9.2.0" version: "10.1.0"
http: http:
dependency: "direct main" dependency: "direct main"
description: description:
@ -454,7 +454,21 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.9"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.12"
path_provider_ios:
dependency: transitive
description:
name: path_provider_ios
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
path_provider_linux: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
@ -524,7 +538,7 @@ packages:
name: qr_code_scanner name: qr_code_scanner
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.5.2" version: "0.7.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
@ -552,14 +566,14 @@ packages:
name: sentry name: sentry
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.1.0" version: "6.4.0"
sentry_flutter: sentry_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
name: sentry_flutter name: sentry_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.0" version: "6.4.0"
shared_preferences: shared_preferences:
dependency: transitive dependency: transitive
description: description:
@ -683,7 +697,7 @@ packages:
name: synchronized name: synchronized
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.0+2"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
@ -711,21 +725,35 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.9" version: "6.0.20"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.15"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.15"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_linux name: url_launcher_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "3.0.0"
url_launcher_macos: url_launcher_macos:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_macos name: url_launcher_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "3.0.0"
url_launcher_platform_interface: url_launcher_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -746,7 +774,7 @@ packages:
name: url_launcher_windows name: url_launcher_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "3.0.0"
uuid: uuid:
dependency: transitive dependency: transitive
description: description:
@ -767,7 +795,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.2" version: "2.5.0"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:

View File

@ -15,36 +15,37 @@ environment:
dependencies: dependencies:
audioplayers: ^0.20.1 # Play audio files
cached_network_image: ^3.1.0 # Download and cache remote images
camera: # Camera
cupertino_icons: ^1.0.3
datetime_picker_formfield: ^2.0.0 # Date / time picker
device_info_plus: ^2.1.0 # Information about the device
dropdown_search: 0.6.3 # Dropdown autocomplete form fields
file_picker: ^4.0.0 # Select files from the device
flutter: flutter:
sdk: flutter sdk: flutter
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
flutter_markdown: ^0.6.2 # Rendering markdown audioplayers: ^0.20.1 # Play audio files
font_awesome_flutter: ^9.1.0 # FontAwesome icon set cached_network_image: ^3.2.0 # Download and cache remote images
http: ^0.13.0 camera: ^0.9.4 # Camera
cupertino_icons: ^1.0.3
datetime_picker_formfield: ^2.0.0 # Date / time picker
device_info_plus: ^3.2.2 # Information about the device
dropdown_search: ^0.6.3 # Dropdown autocomplete form fields
file_picker: ^4.5.1 # Select files from the device
flutter_markdown: ^0.6.9 # Rendering markdown
font_awesome_flutter: ^10.1.0 # FontAwesome icon set
http: ^0.13.4
image_picker: ^0.8.3 # Select or take photos image_picker: ^0.8.3 # Select or take photos
infinite_scroll_pagination: ^3.1.0 # Let the server do all the work! infinite_scroll_pagination: ^3.1.0 # Let the server do all the work!
intl: ^0.17.0 intl: ^0.17.0
one_context: ^1.1.0 # Dialogs without requiring context one_context: ^1.1.0 # Dialogs without requiring context
open_file: 3.2.1 # Open local files open_file: ^3.2.1 # Open local files
package_info_plus: ^1.0.4 # App information introspection package_info_plus: ^1.0.4 # App information introspection
path: path: ^1.8.0
path_provider: 2.0.2 # Local file storage path_provider: ^2.0.2 # Local file storage
qr_code_scanner: ^0.5.2 # Barcode scanning qr_code_scanner: ^0.7.0 # Barcode scanning
sembast: ^3.1.0+2 # NoSQL data storage sembast: ^3.1.0+2 # NoSQL data storage
sentry_flutter: 5.0.0 # Error reporting sentry_flutter: ^6.4.0 # Error reporting
url_launcher: 6.0.9 # Open link in system browser url_launcher: ^6.0.9 # Open link in system browser
dev_dependencies: dev_dependencies:
flutter_launcher_icons: flutter_launcher_icons: