diff --git a/tdesign-component/lib/src/components/rate/td_rate.dart b/tdesign-component/lib/src/components/rate/td_rate.dart index bd5bf8606..06dc1e567 100644 --- a/tdesign-component/lib/src/components/rate/td_rate.dart +++ b/tdesign-component/lib/src/components/rate/td_rate.dart @@ -197,17 +197,29 @@ class _TDRateState extends State with TickerProviderStateMixin { children: [ GestureDetector( onTapDown: (event) { + if (widget.disabled == true) { + return; + } _isClick = true; }, onTapUp: (details) { + if (widget.disabled == true) { + return; + } _changeSelect(details.globalPosition, true); _hideTip(); }, onHorizontalDragUpdate: (details) { + if (widget.disabled == true) { + return; + } _isClick = false; _changeSelect(details.globalPosition); }, onHorizontalDragEnd: (details) { + if (widget.disabled == true) { + return; + } _hideTip(); }, child: Row(