- 👋 Hi, I’m @baoolong
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
baoolong / marqueewidget Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
我现在想切换数据 但是找不到切换的点
不支持内部包组件吗
Hello,
How to increase the speed?
when use this widget, always print the position
class MarqueeWidget extends StatefulWidget{
final String text;
final TextStyle textStyle;
final RichText richText;
///滚动方向,水平或者垂直
final Axis scrollAxis;
///空白部分占控件的百分比
final double ratioOfBlankToScreen;
MarqueeWidget({
this.text,
this.textStyle,
this.richText,
this.scrollAxis:Axis.horizontal,
this.ratioOfBlankToScreen:0.25,
}) :assert((text!=null)||(null!=richText));
@OverRide
State createState() {
return new MarqueeWidgetState();
}
}
Widget getBothEndsChild(){
if(widget.scrollAxis ==Axis.vertical){
assert(null != widget.text);
String newString=widget.text.split("").join("\n");
return new Center(
child: new Text(newString,style: widget.textStyle,textAlign: TextAlign.center,),
);
}
if (null != widget.richText){
return Center(child: widget.richText);
}
return new Center(
child:new Text(widget.text,style: widget.textStyle,)
);
}
这两个定义/方法加了一点内容,不知道怎么提交。。。
How to add Images and Link Url in Marquee
Hello,I want enable marquee effect when the text is larger then parent.Is it possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.