Skip to content

Commit 4590e24

Browse files
committed
deps
1 parent 70cec5e commit 4590e24

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

lib/utils/snackbar.dart

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,16 @@ extension ShowSnackbarGlobalKeyScaffoldStateExtension
55
void showSnackBar(
66
String message, [
77
Duration duration = const Duration(seconds: 2),
8-
]) {
9-
currentState?.showSnackBar(
10-
SnackBar(
11-
content: Text(message),
12-
duration: duration,
13-
),
14-
);
15-
}
8+
]) =>
9+
currentContext?.showSnackBar(message, duration);
1610
}
1711

1812
extension ShowSnackBarBuildContextExtension on BuildContext {
1913
void showSnackBar(
2014
String message, [
2115
Duration duration = const Duration(seconds: 2),
2216
]) {
23-
Scaffold.of(this).showSnackBar(
17+
ScaffoldMessenger.of(this).showSnackBar(
2418
SnackBar(
2519
content: Text(message),
2620
duration: duration,

pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ packages:
196196
name: distinct_value_connectable_stream
197197
url: "https://pub.dartlang.org"
198198
source: hosted
199-
version: "1.2.0-beta01"
199+
version: "1.2.0-beta02"
200200
fake_async:
201201
dependency: transitive
202202
description:
@@ -316,7 +316,7 @@ packages:
316316
name: image_picker
317317
url: "https://pub.dartlang.org"
318318
source: hosted
319-
version: "0.6.7+14"
319+
version: "0.6.7+17"
320320
image_picker_platform_interface:
321321
dependency: transitive
322322
description:
@@ -498,7 +498,7 @@ packages:
498498
name: rxdart
499499
url: "https://pub.dartlang.org"
500500
source: hosted
501-
version: "0.25.0-beta3"
501+
version: "0.25.0"
502502
shared_preferences:
503503
dependency: "direct main"
504504
description:

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ dependencies:
1616
http: ^0.12.2
1717
built_value: ^7.1.0
1818
tuple: ^1.0.3
19-
rxdart: ^0.25.0-beta3
20-
image_picker: ^0.6.7+12
19+
rxdart: ^0.25.0
20+
image_picker: ^0.6.7+17
2121
shared_preferences: ^0.5.12+4
2222

23-
distinct_value_connectable_stream: ^1.2.0-beta01
23+
distinct_value_connectable_stream: ^1.2.0-beta02
2424
flutter_provider: ^1.1.1
2525
rx_shared_preferences: ^1.3.3
2626
disposebag: ^1.4.0
2727
flutter_disposebag: ^1.0.0
2828
flutter_bloc_pattern: ^1.2.0
2929

3030
dependency_overrides:
31-
rxdart: 0.25.0-beta3
31+
rxdart: 0.25.0
3232

3333
dev_dependencies:
3434
pedantic: ^1.9.0

0 commit comments

Comments
 (0)