Skip to content

Commit

Permalink
Update navigationBarColor in CustomTabsOptions to use surface inste…
Browse files Browse the repository at this point in the history
…ad of deprecated background
  • Loading branch information
droibit committed Jun 8, 2024
1 parent 3795fb8 commit bd3c514
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flutter_custom_tabs_android/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Future<void> _launchURL(BuildContext context) async {
customTabsOptions: CustomTabsOptions(
colorSchemes: CustomTabsColorSchemes.defaults(
toolbarColor: theme.colorScheme.surface,
navigationBarColor: theme.colorScheme.background,
navigationBarColor: theme.colorScheme.surface,
),
shareState: CustomTabsShareState.on,
urlBarHidingEnabled: true,
Expand All @@ -99,7 +99,7 @@ Future<void> _launchURLInDefaultBrowser(BuildContext context) async {
customTabsOptions: CustomTabsOptions(
colorSchemes: CustomTabsColorSchemes.defaults(
toolbarColor: theme.colorScheme.surface,
navigationBarColor: theme.colorScheme.background,
navigationBarColor: theme.colorScheme.surface,
),
urlBarHidingEnabled: true,
showTitle: true,
Expand Down Expand Up @@ -145,7 +145,7 @@ Future<void> _launchDeepLinkURL(BuildContext context) async {
customTabsOptions: CustomTabsOptions(
colorSchemes: CustomTabsColorSchemes.defaults(
toolbarColor: theme.colorScheme.surface,
navigationBarColor: theme.colorScheme.background,
navigationBarColor: theme.colorScheme.surface,
),
shareState: CustomTabsShareState.on,
urlBarHidingEnabled: true,
Expand Down

0 comments on commit bd3c514

Please sign in to comment.