I m 试图为我<代码>查询创建<0>。 虽然在列入清单档案时,该片人正在工作,但我不禁要问我如何把<条码><<>>> /条码>的植被纳入自己的类别档案。
Specifically, if the tile
object does not take an argument, I can simply extend a stateless widget and call upon the build
method to return a new tile object.
But if the tile object is to be created with arguments (i.e. custom text), how do I pass this information along? Or would it be better to leave the widget in the listview
class itself?
例:
class Tile extends StatelessWidget {
@override
Widget build(BuildContext context){
return _tile(); //Error, How do i pass the arguments?
}
Widget _tile(String text, String time) {
return new Align(
child: new Container(
// padding: EdgeInsets.all(5.0),
...