Flutter: ListView not scrollable, not bouncing

前端 未结 6 2154
醉梦人生
醉梦人生 2021-02-12 21:49

I have the following example (tested on an iPhone X, iOS 11):

import \'package:flutter/material.dart\';

void main() => runApp(new MyApp());

class MyApp exte         


        
6条回答
  •  时光说笑
    2021-02-12 22:09

    I think this solution is better without CustomScrollView. Just use NotificationListener to wrap the ListView.

      Widget noti = new NotificationListener(
        child:listView,
        onNotification: (ScrollNotification note){
          print(note.metrics.pixels.toInt());
        },
      );
    

    I have test it , Bounce is effective

提交回复
热议问题