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

outdated

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

example/main.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<FloatingActionRowChild>();
    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
0
pub points
61%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on floating_action_row