Skip to content

A flutter container widget that scrolls during drag movement

License

Notifications You must be signed in to change notification settings

Kayes-Islam/drag_scroll_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c61be06 · Aug 3, 2023

History

14 Commits
Aug 3, 2023
Jul 16, 2023
Jul 27, 2023
Jul 16, 2023
Aug 3, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023

Repository files navigation

Features

A flutter container widget that scrolls during drag and drop operatin. If you are creating your own drag-drop container, this could be useful.

Demo

Demo

Disclaimer

All code for DragScrollContainer has been generated by GPT Engineer. This project was part of my experimentation and hands-on for using GPT Engineer. Using the prompt I was able to generate all the code for DragScrollContainer and partially code for ./example/lib/main.dart. I had to make very small changes to DragScrollContainer code to make it compile, then changed main.dart file fo example to my needs.

Usage

Supply the ScrollController and a child. Ie n the example below we are passing in the same ScrollController used by the ListView:

DragScrollContainer(
  scrollController: scrollController1,
  child: ListView.builder(
    controller: scrollController1,
    itemCount: 100,
    itemBuilder:(context, index) => Center(child: DraggableBlock(index: index)),
  ),
)

More info

launch.json as been configured to run the ./example/lib/main.dart.

About

A flutter container widget that scrolls during drag movement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published