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
You can get help from another package: AutoSizeText for this use-case.
run flutter pub add auto_size_text
and then:
import'package:auto_size_text/auto_size_text.dart';
import'package:marquee/marquee.dart';
returnSizedBox(
height:20,
child:AutoSizeText(
'Some text that will probably going to overflow from one of the side',
maxLines:1,
style: context.subtitle2.copyWith(
color:Colors.black,
),
overflowReplacement:Marquee(
text:'Some text that will probably going to overflow from one of the side',
style: context.subtitle2.copyWith(
color:Colors.black,
),
velocity:30,
startAfter:constDuration(seconds:1),
blankSpace:20,
fadingEdgeStartFraction:0.1,
fadingEdgeEndFraction:0.1,
),
),
);
Hi,
How can we make it scroll only when the text is overflowing....?
Thanks!
The text was updated successfully, but these errors were encountered: