Flutter Exception: ScrollController attached to multiple scroll views

If on your case, you have many ListViews on a same views, you will get this error too. And to solve it you just need to add the following property into each listView builder:

controller: ScrollController(),

After you will have :

ListView.builder(
        controller: ScrollController(),//just add this line
        itemCount: items.length,
        itemBuilder: (context, index) {
          return ListTile(
            title: Text(items[index]),
          );

Source is this link: Click here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)