Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/screens/database_settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class DatabaseSettingsScreenState extends State<DatabaseSettingsScreen> {
await platform.invokeMethod('resolveCustomPath', bookmark);
}
} else {
outputDirectory = await FilePicker.platform.getDirectoryPath(
outputDirectory = await FilePicker.getDirectoryPath(
dialogTitle: AppLocalizations.of(context)!.selectDBExportLocation,
);
}
Expand Down Expand Up @@ -423,7 +423,7 @@ class DatabaseSettingsScreenState extends State<DatabaseSettingsScreen> {
Future<void> _importDatabase() async {
try {
final dbHelper = DatabaseHelper();
FilePickerResult? result = await FilePicker.platform.pickFiles(
FilePickerResult? result = await FilePicker.pickFiles(
type: FileType.custom,
allowedExtensions: ['zip'],
);
Expand Down Expand Up @@ -614,8 +614,8 @@ class DatabaseSettingsScreenState extends State<DatabaseSettingsScreen> {
'resolveCustomPath', pickedBookmark);
}
} else {
directoryPath = await FilePicker.platform
.getDirectoryPath(
directoryPath =
await FilePicker.getDirectoryPath(
dialogTitle: AppLocalizations.of(context)!
.selectCustomDBLocation,
);
Expand Down
11 changes: 7 additions & 4 deletions lib/services/logs_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ class LogsService {
print(
'${record.level.name}: ${record.time}: ${record.loggerName}: ${record.message}');
if (record.error != null) print('Error: ${record.error}');
if (record.stackTrace != null)
if (record.stackTrace != null) {
print('Stacktrace: ${record.stackTrace}');
}
}
});
}
Expand All @@ -48,15 +49,16 @@ class LogsService {
buffer.writeln(
'${record.level.name}: ${record.time}: ${record.loggerName}: ${record.message}');
if (record.error != null) buffer.writeln('Error: ${record.error}');
if (record.stackTrace != null)
if (record.stackTrace != null) {
buffer.writeln('Stacktrace: ${record.stackTrace}');
}
buffer.writeln();
}

final Uint8List logBytes =
Uint8List.fromList(buffer.toString().codeUnits);

final String? outputPath = await FilePicker.platform.saveFile(
final String? outputPath = await FilePicker.saveFile(
dialogTitle: AppLocalizations.of(context)!.selectLogsLocation,
fileName: 'wispar_logs.txt',
bytes: logBytes,
Expand Down Expand Up @@ -88,8 +90,9 @@ class LogsService {
buffer.writeln(
'${record.level.name}: ${record.time}: ${record.loggerName}: ${record.message}');
if (record.error != null) buffer.writeln('Error: ${record.error}');
if (record.stackTrace != null)
if (record.stackTrace != null) {
buffer.writeln('Stacktrace: ${record.stackTrace}');
}
buffer.writeln();
}

Expand Down
104 changes: 64 additions & 40 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ packages:
dependency: transitive
description:
name: async
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37
url: "https://pub.dev"
source: hosted
version: "2.13.0"
version: "2.13.1"
background_fetch:
dependency: "direct main"
description:
name: background_fetch
sha256: "6f0cec85480eac151f3971f883180d8c0acf6b40001153f1cf7c2c453df4f851"
sha256: f5f0a5774cbe5e71ce62a9daf7f01007d07b3ac0c1fea1ecb131a3c5a273ca38
url: "https://pub.dev"
source: hosted
version: "1.5.0"
version: "1.5.1"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -117,10 +117,10 @@ packages:
dependency: "direct main"
description:
name: cupertino_icons
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd"
url: "https://pub.dev"
source: hosted
version: "1.0.8"
version: "1.0.9"
dbus:
dependency: transitive
description:
Expand Down Expand Up @@ -165,10 +165,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "57d9a1dd5063f85fa3107fb42d1faffda52fdc948cefd5fe5ea85267a5fc7343"
sha256: f13a03000d942e476bc1ff0a736d2e9de711d2f89a95cd4c1d88f861c3348387
url: "https://pub.dev"
source: hosted
version: "10.3.10"
version: "11.0.2"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -375,10 +375,10 @@ packages:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: ee8068e0e1cd16c4a82714119918efdeed33b3ba7772c54b5d094ab53f9b7fd1
sha256: "38d1c268de9097ff59cf0e844ac38759fc78f76836d37edad06fa21e182055a0"
url: "https://pub.dev"
source: hosted
version: "2.0.33"
version: "2.0.34"
flutter_secure_storage:
dependency: "direct main"
description:
Expand Down Expand Up @@ -439,10 +439,10 @@ packages:
dependency: transitive
description:
name: flutter_svg
sha256: "87fbd7c534435b6c5d9d98b01e1fd527812b82e68ddd8bd35fc45ed0fa8f0a95"
sha256: "1ded017b39c8e15c8948ea855070a5ff8ff8b3d5e83f3446e02d6bb12add7ad9"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.2.4"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -473,10 +473,10 @@ packages:
dependency: transitive
description:
name: hooks
sha256: "7a08a0d684cb3b8fb604b78455d5d352f502b68079f7b80b831c62220ab0a4f6"
sha256: e79ed1e8e1929bc6ecb6ec85f0cb519c887aa5b423705ded0d0f2d9226def388
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.0.2"
html:
dependency: "direct main"
description:
Expand Down Expand Up @@ -533,6 +533,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.0"
jni:
dependency: transitive
description:
name: jni
sha256: c2230682d5bc2362c1c9e8d3c7f406d9cbba23ab3f2e203a025dd47e0fb2e68f
url: "https://pub.dev"
source: hosted
version: "1.0.0"
jni_flutter:
dependency: transitive
description:
name: jni_flutter
sha256: "8b59e590786050b1cd866677dddaf76b1ade5e7bc751abe04b86e84d379d3ba6"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
json_annotation:
dependency: "direct main"
description:
Expand Down Expand Up @@ -593,10 +609,10 @@ packages:
dependency: transitive
description:
name: markdown
sha256: "935e23e1ff3bc02d390bad4d4be001208ee92cc217cb5b5a6c19bc14aaa318c1"
sha256: ee85086ad7698b42522c6ad42fe195f1b9898e4d974a1af4576c1a3a176cada9
url: "https://pub.dev"
source: hosted
version: "7.3.0"
version: "7.3.1"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -633,10 +649,10 @@ packages:
dependency: transitive
description:
name: native_toolchain_c
sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac"
sha256: "6ba77bb18063eebe9de401f5e6437e95e1438af0a87a3a39084fbd37c90df572"
url: "https://pub.dev"
source: hosted
version: "0.17.4"
version: "0.17.6"
nested:
dependency: transitive
description:
Expand All @@ -661,14 +677,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.7.0"
package_config:
dependency: transitive
description:
name: package_config
sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc
url: "https://pub.dev"
source: hosted
version: "2.2.0"
package_info_plus:
dependency: "direct main"
description:
name: package_info_plus
sha256: f69da0d3189a4b4ceaeb1a3defb0f329b3b352517f52bed4290f83d4f06bc08d
sha256: "468c26b4254ab01979fa5e4a98cb343ea3631b9acee6f21028997419a80e1a20"
url: "https://pub.dev"
source: hosted
version: "9.0.0"
version: "9.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -705,10 +729,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e
sha256: "69cbd515a62b94d32a7944f086b2f82b4ac40a1d45bebfc00813a430ab2dabcd"
url: "https://pub.dev"
source: hosted
version: "2.2.22"
version: "2.3.1"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -881,10 +905,10 @@ packages:
dependency: "direct dev"
description:
name: remove_unused_localizations
sha256: "20d97b8138938d0fb4ee717bcb5e7e5e9e8bc3d91e2c185f54d13771261b68d9"
sha256: "1690df0d1b8ddeebfbeeeb29f46fa98573d27695dad6e67739aea28a7e209fe3"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.1.2"
rxdart:
dependency: transitive
description:
Expand Down Expand Up @@ -937,10 +961,10 @@ packages:
dependency: "direct main"
description:
name: share_plus
sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840"
sha256: "223873d106614442ea6f20db5a038685cc5b32a2fba81cdecaefbbae0523f7fa"
url: "https://pub.dev"
source: hosted
version: "12.0.1"
version: "12.0.2"
share_plus_platform_interface:
dependency: transitive
description:
Expand All @@ -953,18 +977,18 @@ packages:
dependency: "direct main"
description:
name: shared_preferences
sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64"
sha256: c3025c5534b01739267eb7d76959bbc25a6d10f6988e1c2a3036940133dd10bf
url: "https://pub.dev"
source: hosted
version: "2.5.4"
version: "2.5.5"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
sha256: "8374d6200ab33ac99031a852eba4c8eb2170c4bf20778b3e2c9eccb45384fb41"
sha256: e8d4762b1e2e8578fc4d0fd548cebf24afd24f49719c08974df92834565e2c53
url: "https://pub.dev"
source: hosted
version: "2.4.21"
version: "2.4.23"
shared_preferences_foundation:
dependency: transitive
description:
Expand All @@ -985,10 +1009,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_platform_interface
sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80"
sha256: "649dc798a33931919ea356c4305c2d1f81619ea6e92244070b520187b5140ef9"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
version: "2.4.2"
shared_preferences_web:
dependency: transitive
description:
Expand Down Expand Up @@ -1038,10 +1062,10 @@ packages:
dependency: transitive
description:
name: sqflite_android
sha256: ecd684501ebc2ae9a83536e8b15731642b9570dc8623e0073d227d0ee2bfea88
sha256: "881e28efdcc9950fd8e9bb42713dcf1103e62a2e7168f23c9338d82db13dec40"
url: "https://pub.dev"
source: hosted
version: "2.4.2+2"
version: "2.4.2+3"
sqflite_common:
dependency: transitive
description:
Expand Down Expand Up @@ -1078,10 +1102,10 @@ packages:
dependency: transitive
description:
name: sqlite3
sha256: b7cf6b37667f6a921281797d2499ffc60fb878b161058d422064f0ddc78f6aa6
sha256: "56da3e13ed7d28a66f930aa2b2b29db6736a233f08283326e96321dd812030f5"
url: "https://pub.dev"
source: hosted
version: "3.1.6"
version: "3.3.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -1166,10 +1190,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611"
sha256: "3bb000251e55d4a209aa0e2e563309dc9bb2befea2295fd0cec1f51760aac572"
url: "https://pub.dev"
source: hosted
version: "6.3.28"
version: "6.3.29"
url_launcher_ios:
dependency: transitive
description:
Expand Down Expand Up @@ -1230,10 +1254,10 @@ packages:
dependency: transitive
description:
name: vector_graphics
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
sha256: "81da85e9ca8885ade47f9685b953cb098970d11be4821ac765580a6607ea4373"
url: "https://pub.dev"
source: hosted
version: "1.1.19"
version: "1.1.21"
vector_graphics_codec:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.10.1+36
version: 0.10.2+38

environment:
sdk: '>=3.2.3 <4.0.0'
Expand Down Expand Up @@ -52,7 +52,7 @@ dependencies:
introduction_screen: ^4.0.0
open_filex: ^4.7.0
google_nav_bar: ^5.0.7
file_picker: ^10.0.0
file_picker: ^11.0.2
flutter_local_notifications: 21.0.0
permission_handler: ^12.0.0+1
latext: ^0.5.0
Expand Down