我可以将SingleChildScrollview与Pageview

时间:2020-09-29 13:28:10

标签: android android-studio flutter user-interface androidx

我想制作简单的应用程序,使SingleChilde Scrollview的浏览量像这样:

enter image description here

所以我读了一篇文章,但没有找到能使我的应用程序成功的文章。

这是列表,将可以在这些应用上使用:

https://pastebin.com/c9uGKUE8

密码是(密码:kucingidn)

     @override
  Widget build(BuildContext ctxt) {
    return new Scaffold(
      body: ListView.builder(
        shrinkWrap: true,
        scrollDirection: Axis.vertical,
        padding:  new EdgeInsets.only(right: 13.0),
        itemCount: doa.length,
        itemBuilder: (BuildContext ctxt, int index) {
          final doaIndonesia = doa[index].toString();
          final doaArab = doa_arab[index].toString();
          final artiIndonesia = arti[index].toString();

          return Card(
            child: Container(
              height: 100.0,
              width: 100.0,
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Flexible( // use flexible
                    child: Text(
                      doa[index],
                      textAlign: TextAlign.center,
                    ),
                  ),
                  Flexible( // use flexible
                    child: Text(
                      doa_arab[index],
                      textAlign: TextAlign.center,
                    ),
                  ),
                  Flexible( // use flexible
                    child: Text(
                      arti[index],
                      textAlign: TextAlign.center,
                    ),
                  ),
                ],
              ),
            ),
          );
        },
      ),
    );
  }
}

任何人都可以帮助我,我对此有最后期限

0 个答案:

没有答案