From bd3c514d64b6080f2a7810a477c5d4387cd5b554 Mon Sep 17 00:00:00 2001 From: Shinya Kumagai Date: Sun, 9 Jun 2024 02:22:23 +0900 Subject: [PATCH] Update navigationBarColor in `CustomTabsOptions` to use surface instead of deprecated background --- flutter_custom_tabs_android/example/lib/main.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter_custom_tabs_android/example/lib/main.dart b/flutter_custom_tabs_android/example/lib/main.dart index f78c8ec..ec0686e 100644 --- a/flutter_custom_tabs_android/example/lib/main.dart +++ b/flutter_custom_tabs_android/example/lib/main.dart @@ -75,7 +75,7 @@ Future _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, @@ -99,7 +99,7 @@ Future _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, @@ -145,7 +145,7 @@ Future _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,