From ab1390e0afc0b4b5d6774369906f7052371ea250 Mon Sep 17 00:00:00 2001 From: Sunbreak Date: Thu, 16 Feb 2023 00:29:33 +0800 Subject: [PATCH] Use black30 for CupertinoTabBar's border (#119509) --- packages/flutter/lib/src/cupertino/bottom_tab_bar.dart | 2 +- packages/flutter/test/cupertino/bottom_tab_bar_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart b/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart index 209a18a2aa..4bdbe86a99 100644 --- a/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart +++ b/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart @@ -15,7 +15,7 @@ import 'theme.dart'; const double _kTabBarHeight = 50.0; const Color _kDefaultTabBarBorderColor = CupertinoDynamicColor.withBrightness( - color: Color(0x4C000000), + color: Color(0x4D000000), darkColor: Color(0x29000000), ); const Color _kDefaultTabBarInactiveColor = CupertinoColors.inactiveGray; diff --git a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart index c78d8c997e..04576a904d 100644 --- a/packages/flutter/test/cupertino/bottom_tab_bar_test.dart +++ b/packages/flutter/test/cupertino/bottom_tab_bar_test.dart @@ -152,7 +152,7 @@ Future main() async { // Border color is resolved correctly. final BoxDecoration decoration1 = renderDecoratedBox.decoration as BoxDecoration; - expect(decoration1.border!.top.color.value, 0x4C000000); + expect(decoration1.border!.top.color.value, 0x4D000000); // Switch to dark mode. await pumpWidgetWithBoilerplate(tester, MediaQuery(