mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Upgrade dependencies
This commit is contained in:
parent
84986e6f38
commit
4d1755db3a
4 changed files with 51 additions and 37 deletions
|
@ -763,7 +763,7 @@ class _ViewerSettingsState extends State<_ViewerSettings> {
|
|||
if (value) {
|
||||
var brightness = 0.5;
|
||||
try {
|
||||
await ScreenBrightness.setScreenBrightness(brightness);
|
||||
await ScreenBrightness().setScreenBrightness(brightness);
|
||||
final value = await showDialog<int>(
|
||||
context: context,
|
||||
builder: (_) => AppTheme(
|
||||
|
@ -789,7 +789,7 @@ class _ViewerSettingsState extends State<_ViewerSettings> {
|
|||
onChangeEnd: (value) async {
|
||||
brightness = value;
|
||||
try {
|
||||
await ScreenBrightness.setScreenBrightness(value);
|
||||
await ScreenBrightness().setScreenBrightness(value);
|
||||
} catch (e, stackTrace) {
|
||||
_log.severe("Failed while setScreenBrightness", e,
|
||||
stackTrace);
|
||||
|
@ -821,7 +821,7 @@ class _ViewerSettingsState extends State<_ViewerSettings> {
|
|||
_setScreenBrightness(value);
|
||||
}
|
||||
} finally {
|
||||
ScreenBrightness.resetScreenBrightness();
|
||||
ScreenBrightness().resetScreenBrightness();
|
||||
}
|
||||
} else {
|
||||
_setScreenBrightness(-1);
|
||||
|
|
|
@ -59,13 +59,13 @@ class _ViewerBrightnessController implements Disposable {
|
|||
init(State state) {
|
||||
final brightness = Pref().getViewerScreenBrightness();
|
||||
if (brightness != null && brightness >= 0) {
|
||||
ScreenBrightness.setScreenBrightness(brightness / 100.0);
|
||||
ScreenBrightness().setScreenBrightness(brightness / 100.0);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
dispose(State state) {
|
||||
ScreenBrightness.resetScreenBrightness();
|
||||
ScreenBrightness().resetScreenBrightness();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
70
pubspec.lock
70
pubspec.lock
|
@ -28,7 +28,7 @@ packages:
|
|||
name: args
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
version: "2.3.0"
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -42,7 +42,7 @@ packages:
|
|||
name: bloc
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "7.0.0"
|
||||
version: "7.2.1"
|
||||
bloc_test:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
@ -105,42 +105,42 @@ packages:
|
|||
name: connectivity_plus
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
version: "2.0.2"
|
||||
connectivity_plus_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: connectivity_plus_linux
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
version: "1.1.0"
|
||||
connectivity_plus_macos:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: connectivity_plus_macos
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.2.1"
|
||||
connectivity_plus_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: connectivity_plus_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.1.0"
|
||||
connectivity_plus_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: connectivity_plus_web
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.1.0+1"
|
||||
connectivity_plus_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: connectivity_plus_windows
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.2.0"
|
||||
convert:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -175,7 +175,7 @@ packages:
|
|||
name: dbus
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.5.2"
|
||||
version: "0.5.6"
|
||||
device_info_plus:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -233,7 +233,7 @@ packages:
|
|||
name: equatable
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.2"
|
||||
version: "2.0.3"
|
||||
event_bus:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -263,14 +263,14 @@ packages:
|
|||
name: ffi
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
version: "1.1.2"
|
||||
file:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: file
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "6.1.1"
|
||||
version: "6.1.2"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
description: flutter
|
||||
|
@ -282,7 +282,7 @@ packages:
|
|||
name: flutter_bloc
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "7.0.0"
|
||||
version: "7.3.1"
|
||||
flutter_blurhash:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -315,7 +315,7 @@ packages:
|
|||
name: flutter_plugin_android_lifecycle
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.1"
|
||||
version: "2.0.4"
|
||||
flutter_staggered_grid_view:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -383,7 +383,7 @@ packages:
|
|||
name: http
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.13.3"
|
||||
version: "0.13.4"
|
||||
http_multi_server:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -404,14 +404,14 @@ packages:
|
|||
name: idb_shim
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0+2"
|
||||
version: "2.0.1"
|
||||
idb_sqflite:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: idb_sqflite
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
version: "1.0.1"
|
||||
image_size_getter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -448,7 +448,7 @@ packages:
|
|||
name: kiwi
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.0.0"
|
||||
version: "4.0.1"
|
||||
lints:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -505,6 +505,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
nm:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: nm
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.0"
|
||||
node_preamble:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -595,14 +602,14 @@ packages:
|
|||
name: platform
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.0.0"
|
||||
version: "3.0.2"
|
||||
plugin_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: plugin_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
version: "2.0.2"
|
||||
pool:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -616,14 +623,14 @@ packages:
|
|||
name: process
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "4.2.1"
|
||||
version: "4.2.4"
|
||||
provider:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: provider
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "5.0.0"
|
||||
version: "6.0.1"
|
||||
pub_semver:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -644,21 +651,28 @@ packages:
|
|||
name: rxdart
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.26.0"
|
||||
version: "0.27.2"
|
||||
screen_brightness:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: screen_brightness
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.4"
|
||||
version: "0.1.1"
|
||||
screen_brightness_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: screen_brightness_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.2"
|
||||
sembast:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sembast
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.0.2"
|
||||
version: "3.1.1"
|
||||
shared_preferences:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -761,14 +775,14 @@ packages:
|
|||
name: sqflite
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0+3"
|
||||
version: "2.0.0+4"
|
||||
sqflite_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_common
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0+2"
|
||||
version: "2.0.1+1"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -998,7 +1012,7 @@ packages:
|
|||
name: win32
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.5"
|
||||
version: "2.2.10"
|
||||
woozy_search:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
|
|
@ -30,7 +30,7 @@ dependencies:
|
|||
android_intent_plus: ^3.0.1
|
||||
bloc: ^7.0.0
|
||||
cached_network_image: ^3.0.0
|
||||
connectivity_plus: 1.0.3
|
||||
connectivity_plus: ^2.0.2
|
||||
device_info_plus: ^3.1.0
|
||||
draggable_scrollbar:
|
||||
git:
|
||||
|
@ -59,14 +59,14 @@ dependencies:
|
|||
ref: 1.0.0-nc-photos-2
|
||||
path: library
|
||||
intl: ^0.17.0
|
||||
kiwi: ^3.0.0
|
||||
kiwi: ^4.0.1
|
||||
logging: ^1.0.1
|
||||
native_device_orientation: ^1.0.0
|
||||
page_view_indicators: ^2.0.0
|
||||
path: ^1.8.0
|
||||
path_provider: ^2.0.6
|
||||
rxdart: ^0.26.0
|
||||
screen_brightness: ^0.0.4
|
||||
rxdart: ^0.27.2
|
||||
screen_brightness: ^0.1.1
|
||||
shared_preferences: ^2.0.8
|
||||
# android/ios only
|
||||
sqflite: ^2.0.0
|
||||
|
|
Loading…
Reference in a new issue