Skip to content

Commit

Permalink
Merge pull request #193 from droibit/feature/deprecated_background_color
Browse files Browse the repository at this point in the history
Update navigationBarColor in `CustomTabsOptions` to use surface instead of deprecated background
  • Loading branch information
droibit committed Jun 8, 2024
2 parents 3795fb8 + bd3c514 commit db2a42c
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 db2a42c

Please sign in to comment.