From cc6fefb4a86e81f49aba982120128bc3471f5539 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 24 Mar 2021 13:55:10 +0800 Subject: [PATCH] radio button theme --- lib/constants/app_theme.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/constants/app_theme.dart b/lib/constants/app_theme.dart index 2c8fdf90..3d9c7662 100644 --- a/lib/constants/app_theme.dart +++ b/lib/constants/app_theme.dart @@ -40,6 +40,12 @@ class AppTheme { type: BottomNavigationBarType.fixed, unselectedLabelStyle: TextStyle(), ), + radioTheme: RadioThemeData( + fillColor: MaterialStateProperty.resolveWith((states) { + if (states.contains(MaterialState.selected)) return Color(0xFFFFD000); + return null; + }), + ), ); } }