Allows to seemlessly drag the widget in two (2) dimensional axis, along with resizing and rotating it the same time.
- Seamlessly drag the widget
- Allows resizing while dragging
- Allows rotating while dragging
- add the plugin to your pubspec.yaml file:
draggable_resizer: [latest_version]- import the plugin in [your_file].dart
import 'package:draggable_resizer/draggable_resizer.dart';- Drag it horizontally from left to right direction
const DraggableResizer(
draggerColor: Colors.white,
axis: Axis.horizontal,
direction: Direction.leftToRight)- you can also listen to value changes from 1 to 100 (Left to Right):
const DraggableResizer(
draggerColor: Colors.white,
axis: Axis.horizontal,
direction: Direction.leftToRight,
onValueChange: ((val) => setState(() {
print("Value changed to $val");
})))- Go to example/lib/main.dart file to see all examples
- See next section for images
- Use this command in terminal: "flutter run"
Initially it was made as an alternative for 'resizing sliders' but later on found several use cases as listed below: Example Gif/Mp4 files for review are as below: (wait while its loading):
basic-usage.mp4
example1.mp4
example3.mp4
eample2.mp4
Created by Javeria Iffat
In case you need: to add new feature or you get any error or any help, please contact me at javeriaiffat312@gmail.com or javeria.iffat@lums.edu.pk please be kind if you get any errors, text me I'll be more than happy to help you all.
THANK YOU!
