我想在主体内部使用Marquee
,但是它显示的错误是类MyApp
中未定义的错误>
body: Center( child: Row ( mainAxisAlignment: MainAxisAlignment.start, children: <Widget> [ Marquee ( child: Text('hello world!', style: TextStyle ( color: Colors.blueAccent, fontWeight: FontWeight.w500, fontSize: 40) ) ), ], ), ),
如何在体内使用
Marquee
?
我想在主体内部使用选取框,但它显示的错误是在类MyApp主体中未定义的:Center(child:Row(mainAxisAlignment:MainAxisAlignment.start,...
在依赖中将marque lib添加到pubspec.yaml文件并保存。
dependencies:
flutter:
sdk: flutter
marquee: ^1.3.1