From f668c07a2b2885c2ea7f8c2a8d74874758e290e4 Mon Sep 17 00:00:00 2001 From: Abbas Hussein Date: Sun, 19 Nov 2023 13:03:32 +0300 Subject: [PATCH 1/2] Update radio_button.dart --- lib/src/buttons/radio_button.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/buttons/radio_button.dart b/lib/src/buttons/radio_button.dart index 57097758..eda3de26 100644 --- a/lib/src/buttons/radio_button.dart +++ b/lib/src/buttons/radio_button.dart @@ -91,7 +91,7 @@ class MacosRadioButton extends StatelessWidget { final MacosThemeData theme = MacosTheme.of(context); final isLight = !theme.brightness.isDark; return GestureDetector( - onTap: () => onChanged!(value), + onTap: isDisabled ? null : () => onChanged!(value), child: Semantics( checked: selected, label: semanticLabel, From 6717da6b1b7440c872b29b8e7b183e0f59b20d32 Mon Sep 17 00:00:00 2001 From: Abbas Hussein Date: Sun, 19 Nov 2023 13:14:13 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd70a111..dfd25dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [2.0.3] +### 🛠️ Fixed 🛠️ +* Fixed `MacosRadioButton` check null value issue. + ## [2.0.2] ### 🛠️ Fixed 🛠️ * Fixed images in generated documentation.