Skip to content

Commit f169369

Browse files
committed
Merge branch 'develop' of https://github.com/Tencent/tdesign-flutter into release/0.2.6
# Conflicts: # tdesign-component/lib/src/components/cell/td_cell.dart
2 parents ce493a1 + 6e1a35a commit f169369

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

tdesign-component/lib/src/components/cell/td_cell.dart

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -175,23 +175,24 @@ class _TDCellState extends State<TDCell> {
175175
crossAxisAlignment: crossAxisAlignment,
176176
children: [
177177
..._buildImage(),
178-
Expanded(
179-
child: Row(
180-
crossAxisAlignment: CrossAxisAlignment.start,
181-
children: [
182-
if (widget.leftIcon != null ||
183-
widget.leftIconWidget != null) ...[
184-
widget.leftIconWidget ??
185-
Icon(widget.leftIcon,
186-
size: 24, color: style.leftIconColor),
187-
SizedBox(width: theme.spacer12),
188-
],
189-
Expanded(
190-
child: Column(
191-
crossAxisAlignment: CrossAxisAlignment.start,
192-
// spacing: theme.spacer4,
193-
children: [
194-
Row(
178+
Row(
179+
mainAxisSize: MainAxisSize.min,
180+
crossAxisAlignment: crossAxisAlignment,
181+
children: [
182+
if (widget.leftIcon != null ||
183+
widget.leftIconWidget != null) ...[
184+
widget.leftIconWidget ??
185+
Icon(widget.leftIcon,
186+
size: 24, color: style.leftIconColor),
187+
SizedBox(width: theme.spacer12),
188+
],
189+
Column(
190+
crossAxisAlignment: CrossAxisAlignment.start,
191+
// spacing: theme.spacer4,
192+
children: [
193+
IntrinsicWidth(
194+
child: Container(
195+
child: Row(
195196
children: [
196197
if (widget.titleWidget != null)
197198
Flexible(child: widget.titleWidget!)

0 commit comments

Comments
 (0)