draggable_panel 0.0.1 copy "draggable_panel: ^0.0.1" to clipboard
draggable_panel: ^0.0.1 copied to clipboard

Draggable panel

example/lib/main.dart

import 'package:draggable_panel/draggable_panel.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(
    const App(),
  );
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () {},
                child: const Text('Tap'),
              ),
            ],
          ),
        ),
      ),
      builder: (context, child) {
        return DraggablePanel(
          items: [
            DraggablePanelItem(
              icon: Icons.list,
              onTap: (context) {},
            ),
            DraggablePanelItem(
              icon: Icons.color_lens,
              onTap: (context) {},
            ),
            DraggablePanelItem(
              icon: Icons.zoom_in,
              onTap: (context) {},
            ),
            DraggablePanelItem(
              icon: Icons.token,
              onTap: (context) {},
            ),
          ],
          buttons: [
            DraggablePanelButton(
              icon: Icons.copy,
              onTap: (context) {},
              label: 'Push token',
            ),
          ],
          child: child!,
        );
      },
    );
  }
}
copied to clipboard
1
likes
0
points
587
downloads

Publisher

verified publishershodev.live

Weekly Downloads

2024.06.25 - 2025.01.07

Draggable panel

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on draggable_panel