We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc37cf commit 9a95b73Copy full SHA for 9a95b73
tdesign-component/lib/src/components/button/td_button.dart
@@ -250,8 +250,9 @@ class _TDButtonState extends State<TDButton> {
250
textColor: style.textColor ?? TDTheme.of(context).textColorPrimary,
251
style: _textStyle,
252
forceVerticalCenter: true,
253
+ overflow: TextOverflow.ellipsis,
254
);
- children.add(text);
255
+ children.add(Flexible(child: text));
256
}
257
if (icon != null && widget.iconPosition == TDButtonIconPosition.right) {
258
children.add(icon);
0 commit comments