Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux scroll in flutter

class MyCustomScrollBehavour extends MaterialScrollBehavior {
  @override
  Set<PointerDeviceKind> get dragDevices =>  {
    PointerDeviceKind.touch,
    PointerDeviceKind.mouse,
  };
}


final ScrollController controller = ScrollController();
ScrollConfiguration(
   behavior: MyCustomScrollBehavour(),
   child: ListView.builder(controller: controller,itemBuilder: 
        (BuildContext context int index) {
        return Text('item $index');
    }
  ),
);
 
PREVIOUS NEXT
Tagged: #linux #scroll #flutter
ADD COMMENT
Topic
Name
7+4 =