mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
Fix DebugAuthInterface logout method
Added environment key to ArcaneEnvironment constructor Renamed switchEnvironment parameter in ArcaneEnvironment constructor Bumped arcane_helper_utils dependency version
This commit is contained in:
@@ -25,7 +25,9 @@ class DebugAuthInterface
|
|||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Result<void, String>> logout() async {
|
Future<Result<void, String>> logout({
|
||||||
|
Future<void> Function()? onLoggedOut,
|
||||||
|
}) async {
|
||||||
Arcane.log("Logging out");
|
Arcane.log("Logging out");
|
||||||
|
|
||||||
_isSignedIn = false;
|
_isSignedIn = false;
|
||||||
|
|||||||
@@ -14,11 +14,10 @@ class ArcaneEnvironment extends InheritedWidget {
|
|||||||
/// Creates an `ArcaneEnvironment` widget.
|
/// Creates an `ArcaneEnvironment` widget.
|
||||||
const ArcaneEnvironment({
|
const ArcaneEnvironment({
|
||||||
required this.environment,
|
required this.environment,
|
||||||
required Widget child,
|
|
||||||
required void Function(Environment) switchEnvironment,
|
required void Function(Environment) switchEnvironment,
|
||||||
Key? key,
|
required super.child,
|
||||||
}) : _switchEnvironment = switchEnvironment,
|
super.key,
|
||||||
super(key: key, child: child);
|
}) : _switchEnvironment = switchEnvironment;
|
||||||
|
|
||||||
/// Retrieves the `ArcaneEnvironment` instance from the nearest ancestor.
|
/// Retrieves the `ArcaneEnvironment` instance from the nearest ancestor.
|
||||||
///
|
///
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ environment:
|
|||||||
flutter: ">=1.17.0"
|
flutter: ">=1.17.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
arcane_helper_utils: ^1.4.1
|
arcane_helper_utils: ^1.4.5
|
||||||
collection: ^1.19.0
|
collection: ^1.19.0
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
Reference in New Issue
Block a user