draggable_menu 1.0.0 draggable_menu: ^1.0.0 copied to clipboard
Create Draggable Menus like some popular apps like Instagram, Snapchat, Facebook, Twitter etc. You can even make your Draggable Menus look identical to them.
1.0.0 Release #
What’s new #
-
Now the Draggable Menu is compatible with Dart 3
-
Now you can create your own UIs more easily and better looking by making use of the
CustomDraggableMenu
class. For more info, take a look at theCreate your custom UI
section in the readme file. -
Using scrollables are now easier. Check the
Using Scrollables
section under theBreaking Changes
section if you are coming from an older version.
Breaking changes #
UI Type Update #
-
The way you choose one of the pre-build UIs changed. The
DraggableMenuUiType
enum and theuiType
parameter of theDraggableMenu
widget are removed. And now, if you want to change the UI, you should pass one of the Pre-build UI classes. -
DraggableMenuUiType.classic
=ClassicDraggableMenu
DraggableMenuUiType.modern
=ModernDraggableMenu
DraggableMenuUiType.softModern
=SoftModernDraggableMenu
DraggableMenu(
ui: SoftModernDraggableMenu();
child: child,
)
- And the
barItem
,radius
,color
andaccentColor
parameters of the Default UI were removed as well. Now you can reach them inside of the Pre-Build UI classes' parameters.
DraggableMenu(
ui: ClassicDraggableMenu(
barItem: barItem,
radius: radius,
color: color,
);
child: child,
)
- If you just want to change the appearance of the
Draggable Menu
widget and don't want to make a huge change in its UI. Then, just pass theClassicDraggable
with the parameters you want it to be to theui
parameter of theDraggableMenu
widget.
Child Parameter of the DraggableMenu
widget #
- Now the
child
parameter is required for theDraggableMenu
widget.
Using Scrollables #
- When using scrollables, don't give them a
scrollController
directly. If you want to use, ascrollController
to control the scrollable give it to theScrollManager
instead.