Can I mix SingleChildScrollview with Pageview

136 views Asked by At

I wanna make simple apps that use SingleChilde Scrollview with a pageview in flutter like this :

enter image description here

so I was read an article but I didn't find the article that will able to make my apps.

and this is the list will be able to use on these apps :

https://pastebin.com/c9uGKUE8

the password is (password: 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,
                    ),
                  ),
                ],
              ),
            ),
          );
        },
      ),
    );
  }
}

anyone can help me, I have a deadline for this

0

There are 0 answers