Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

velocity value would not be Effective right now #65

Open
githubkind opened this issue May 31, 2021 · 0 comments
Open

velocity value would not be Effective right now #65

githubkind opened this issue May 31, 2021 · 0 comments

Comments

@githubkind
Copy link

githubkind commented May 31, 2021

i try to wacth the value if velocity by provider,
when the velocity value change the speed will be effective always need the text play one times

 Selector<AllOne,Tuple5<String ,int,double,double,double >>(
                      shouldRebuild: (pre,next){
                        return pre!=next;
                      },
                      builder: (context, Tuple4Value, child) {
                        print('builderpriview${ Tuple4Value.item4}');
                        return  Marquee(
                          text:Tuple4Value.item1,
                          style: TextStyle(
                              color: GlobalConfig.colorList[Tuple4Value.item2], // fontSize: allone.currentFontSize,
                              letterSpacing: Tuple4Value.item5, fontSize: Tuple4Value.item3),
                          scrollAxis: Axis.horizontal,
                          velocity: Tuple4Value.item4,
                        );
                      }, selector: (context, setC)=>Tuple5(setC.displaytext,setC.textColorIndex,setC.fontsizeValue,setC.textSpeed,setC.letterSpacing)),

Thank you for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant