draggable_floating_action_button 0.0.5 copy "draggable_floating_action_button: ^0.0.5" to clipboard
draggable_floating_action_button: ^0.0.5 copied to clipboard

A draggable floating action button which can be moved on the horizontal axis

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text('Draggable FAB'),
        ),
        body: Column(
          children: <Widget>[
            Expanded(
              child: Center(
                child: Text('You can move the FAB after a long press!'),
              ),
            ),
            DraggableFloatingActionButton(
              onPressed: () {
                print('Fab Pressed');
              },
              icon: Icon(Icons.add),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A draggable floating action button which can be moved on the horizontal axis

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on draggable_floating_action_button