Skip to content

Commit

Permalink
Update auth_in_app_browser.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozRatej committed Oct 25, 2024
1 parent 80a4650 commit 12682f0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/util/auth_in_app_browser.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:humhub/models/manifest.dart';
import 'package:humhub/util/extensions.dart';
import 'package:loggy/loggy.dart';

class AuthInAppBrowser extends InAppBrowser {
Expand All @@ -14,11 +13,13 @@ class AuthInAppBrowser extends InAppBrowser {
AuthInAppBrowser({required this.manifest, required this.concludeAuth}) {
settings = InAppBrowserClassSettings(
browserSettings: InAppBrowserSettings(
hideUrlBar: true,
shouldCloseOnBackButtonPressed: true,
toolbarTopBackgroundColor: HexColor(manifest.themeColor),
toolbarTopTintColor: HexColor(manifest.themeColor),
presentationStyle: ModalPresentationStyle.OVER_FULL_SCREEN),
hideUrlBar: true,
hideToolbarTop: true,
closeOnCannotGoBack: true,
shouldCloseOnBackButtonPressed: true,
hideToolbarBottom: true,
presentationStyle: ModalPresentationStyle.POPOVER,
),
webViewSettings: InAppWebViewSettings(
javaScriptEnabled: true,
useShouldOverrideUrlLoading: true,
Expand Down

0 comments on commit 12682f0

Please sign in to comment.