Answers for "linux scroll in flutter"

1

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');
    }
  ),
);
Posted by: Guest on April-06-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language