You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to developing with flutter and my as first ever project I used your library, so this issue might be solved easier than I think,
Is your feature request related to a problem? Please describe.
I had to implement a list of users with full names and picture ID, so basically I copied Chip() exactly as it is from your example provided. sometimes user full names are too long, an as described in documents and stackoverflow I used Text() like this:
// simplified version
Chip(
text: const Text(
"A very very long string fetched from api",
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
it didn't work, and then I tried other solutions like putting Text() inside Expanded() or Flexible(), which gives error.
// simplified version
Chip(
text: const Expanded(
child: Text(
"A very very long string fetched from api",
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
),
Describe the solution you'd like
following error messages generated by flutter I realized I cannot put Flexible() inside Padding() but I wasn't using any Padding().
I'm new to developing with flutter and my as first ever project I used your library, so this issue might be solved easier than I think,
Is your feature request related to a problem? Please describe.
I had to implement a list of users with full names and picture ID, so basically I copied
Chip()
exactly as it is from your example provided. sometimes user full names are too long, an as described in documents and stackoverflow I usedText()
like this:it didn't work, and then I tried other solutions like putting
Text()
insideExpanded()
orFlexible()
, which gives error.Describe the solution you'd like
following error messages generated by flutter I realized I cannot put
Flexible()
insidePadding()
but I wasn't using anyPadding()
.Padding is done inside
Chip()
fluent_ui/lib/src/controls/inputs/chip.dart
Lines 113 to 118 in dc4ea67
so I edited the file and added
Flexible()
here:now the
Text()
doesn't overflow anymore.so I think it should be like that as default.
Describe alternatives you've considered
Nothing really.
Additional context
Is there and other way to make
Text()
not overflow?The text was updated successfully, but these errors were encountered: