0 purchases
widget drag and drop layer
Widget Drag And Drop Layer
Allow show y/o hidden a widget floating over the screen also expand this widget in fullscreen.
Get Starting
drag_and_drop_pluging: ^0.0.5
copied to clipboard
Example
Example code
WidgetDragAndDropLayer(
props: WidgetDragAndDropLayerProps(
floatingWidget: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(isFullScreen ? 0 : 16),
color: Colors.red.shade200,
),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
ElevatedButton(
onPressed: () {
setState(() {
isFullScreen = !isFullScreen;
});
},
child: const Text("Button Uno"),
),
],
),
),
),
content: Container(),
floatingFullScreen: isFullScreen,
floatingVisible: isVisibleButton,
),
)
copied to clipboard
Properties
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.