material-components / material-components-flutter-codelabs

Codelabs for Material Components for Flutter
212 stars 244 forks source link

There's no constant named 'labelLarge' in 'TextOverflow'. #286

Closed GolakiyaVishal closed 1 year ago

GolakiyaVishal commented 1 year ago

This is link for code lab

in section 5 Modify Typography and label style.

// TODO: Change innermost Column (103) children: <Widget>[ // TODO: Handle overflowing labels (103) Text( product.name, style: theme.textTheme.button, softWrap: false, overflow: TextOverflow.labelLarge, maxLines: 1, ), const SizedBox(height: 4.0), Text( formatter.format(product.price), style: theme.textTheme.bodySmall, ), // End new code ],

in this sample code required to change overflow property. overflow: TextOverflow.labelLarge to overflow: TextOverflow.ellipsis

guidezpl commented 1 year ago

Thanks for filing an issue, this will be fixed shortly.