floating_action_row 0.1.0 copy "floating_action_row: ^0.1.0" to clipboard
floating_action_row: ^0.1.0 copied to clipboard

A Flutter package that provides a widget with a row or column of floating action buttons.

example/example.dart

import 'package:flutter/material.dart';

import 'package:floating_action_row/floating_action_row.dart';

void main() {
  runApp(
    MaterialApp(
      home: Example(),
      title: "FloatingActionRow Example",
      debugShowCheckedModeBanner: false,
    ),
  );
}

class Example extends StatefulWidget {
  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    var children = List<Widget>();
    children.add(
      FloatingActionRowButton(
        icon: Icon(Icons.add),
        onTap: () {},
      ),
    );
    children.add(
      FloatingActionRowDivider(),
    );
    children.add(
      FloatingActionRowButton(
        icon: Icon(Icons.done),
        onTap: () {},
      ),
    );
    children.add(
      FloatingActionRowDivider(),
    );
    children.add(
      FloatingActionRowButton(
        icon: Icon(Icons.arrow_forward),
        onTap: () {},
      ),
    );

    return Scaffold(
      floatingActionButton: FloatingActionRow(
        children: children,
        color: Colors.blueAccent,
        elevation: 4,
      ),
    );
  }
}
32
likes
40
pub points
57%
popularity

Publisher

unverified uploader

A Flutter package that provides a widget with a row or column of floating action buttons.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on floating_action_row