Flutter Floating Action Button with Speed Dial

Overview

UnicornDialer

Easily create your own floating action button list

alt text

alt text

Installing

Add UnicornDialer to your pubspec.yaml

unicorndial: "^1.1.5"

Options

UnicornDialer class

int orientation - Vertical or horizontal floating button list

Object parentHeroTag - Main FAB hero tag

Color backgroundColor - Modal background color

Icon parentButton - Starting Icon

Icon finalButtonIcon - Ending Icon (after animation is complete)

bool hasBackground - Background modal is set

Color parentButtonBackground - The main floating button background color

List<UnicornButton> childButtons Floating button list

int animationDuration Rotation and expanding animation duration (in milliseconds)

double childPadding - Right padding on the button label

Function onMainButtonPressed - To be called if set on the UnicornDialer parent widget

bool hasNotch - BottomAppBar support

UnicornButton class

FloatingActionButton currentButton - Floating list button

String labelText

double labelFontSize

Color labelColor

Color labelBackgroundColor

Color labelShadowColor - Label container shadow

bool labelHasShadow

bool hasLabel

Authors

Tiago Martins

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Issues
  • Match the style with the regular Floating Action Button

    Match the style with the regular Floating Action Button

    Hi, thank you for the initiative of developing this package. Currently I'm including you FAB in an app with a bottom navigation. When I switch the item/tab, the FAB is replaced by a new one. I have the following issues:

    • The default margin of a regular FAB is smaller than the margin in this package; when switching FABs they jump to different places; is there a way to change the margins to the default from the regular FAB?
    • the regular FABs, when switching between views, fade out and fade in; using the FAB from this package I'm not achieving the same effect.

    To better illustrate my use case, please check this similar example from Flutter Gallery.

    enhancement missing feature 
    opened by oneplusseven 8
  • Material animation

    Material animation

    Nice plugin ! Can we control the animation so it mimic the same used in material design app like Gmail ?

    enhancement 
    opened by Solido 8
  • Couple of new issues

    Couple of new issues

    Thanks for the updates, looking really good, the popup animation is much nicer and the collapse on press was working nicely. However, after the 1.0.5 update there were a few quirky problems that I ran into. First error I was getting was: Another exception was thrown: There are multiple heroes that share the same tag within a subtree. So what I had to do to get rid of that was inside the UnicornButton FloatingActionButton component, to set heroTag: null, and that went away. It was mostly working but then I realized I wasn't able to press the sub buttons anymore. The onPressed in the mini FloatingActionButton was no longer getting called... I don't know what that's about, it was working at first and after playing with it a while I couldn't find a fix. I've checked it against the example and it all looks right... only difference is I'm using it on a few different pages in the route and adding the list of UnicornButton children directly instead of a variable list. Any suggestions? Thanks.

    opened by Skquark 4
  • Docking in bottomNavigationBar issue. [v1.1.4]

    Docking in bottomNavigationBar issue. [v1.1.4]

    I am docking the unicornspeeddial into a bottom app bar, with

    hasNotch: true.
    floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked
    

    In version 1.1.3 this didn't exists, but not it is showing:

    screen shot 2018-08-22 at 5 40 17 pm

    bug 
    opened by jeprojects 3
  • Collapsing child buttons after press

    Collapsing child buttons after press

    This was just what I was looking for, got it integrated in no time and fairly pleased. Just ran into one little snag I was hoping you could help with.. The child buttons pop out fine, but when I press the sub button I expected the icons to collapse down after pressing it. I figure there's something to add to the onPressed of the UnicornButton to tell UnicornDialer to close, or an option in UnicornDialer to tell it to auto collapse, but I couldn't figure out any solution after tinkering with it a bit. Thanks.

    missing feature 
    opened by Skquark 2
  • Configurable animation time for _parentController

    Configurable animation time for _parentController

    When switching between screens the parent floating action button is flickering. For this reason it makes sense to make this propery configurable.

    opened by sdolski 2
  • Animate to

    Animate to "cancel"

    I have one last suggestion: if the main FAB has an "add" icon (+), it rotates to a "cancel" (x) when opening, which is what is intended. But when using other icons, the same effect is not possible. Wouldn't be better to always animate to a cross when opening instead of rotating the original icon?

    enhancement 
    opened by oneplusseven 2
  • Prevent auto-hide

    Prevent auto-hide

    HI, any way to prevent auto-hiding the UnicornButtons after click or is this a behaviour of FloatingActionButton?

    opened by christocracy 2
  • Incompatible with BottomAppBar with shape specified for Notch

    Incompatible with BottomAppBar with shape specified for Notch

    Specifying a NotchShape when using UnicornDialler in a BottomAppBar breaks the rendering of the notch shape:

    Scaffold(
      appBar: …,
      body: …,
      floatingActionButton: UnicornDialler(…),
      floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
      bottomNavigationBar: BottomAppBar(
        child: …,
        shape: CircularNotchedRectangle(),
      )
    

    screenshot_1533824564 2

    bug 
    opened by dereklakin 2
  • Incorrectly positioned when docked in a BottomAppBar

    Incorrectly positioned when docked in a BottomAppBar

    When using UnicornDialler in a BottomAppBar with a docked position specified, the FAB is incorrectly positioned (requires a padding of 20.0 at the bottom).

    Scaffold(
      appBar: …,
      body: …,
      floatingActionButton: UnicornDialler(…),
      floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
      bottomNavigationBar: BottomAppBar(
        child: …,
        shape: CircularNotchedRectangle(),
      )
    

    screenshot_1533825013 2

    bug 
    opened by dereklakin 2
  • Use flutter_speed_dial if this is dead

    Use flutter_speed_dial if this is dead

    Hey guys, I came to know about this package from flutterawesome but it looks like this package is not maintained from straight 2018 and doesn't keep up to current flutter standards like Null safety and other stuff.

    You can use flutter_speed_dial it also have a Direction parameter and is far superior than this cause it uses Overlays instead of old Stack implementation.

    You can test it in your app by using below code snippet, I hope you will like it.

     flutter_speed_dial: ^4.0.0-dev
    

    You can checkout full release here.

    opened by prateekmedia 0
  • Null safety

    Null safety

    Will this package get upgraded to null-safety?

    opened by HamiidrezaRamezani 1
  • Disable background in open state

    Disable background in open state

    Disable interaction with other things in screen while the floating widget state is open or else automatically close the state of floating widget

    opened by sgshivamgarg8 1
  • Nested Fab Support & Fix irresponsive buttons

    Nested Fab Support & Fix irresponsive buttons

    1. Nested Fab Support
    2. Fix dead FABs
    opened by atrvicky 0
  • Null-safety

    Null-safety

    Will this package get upgraded to null-safety?

    opened by sebastianbuechler 3
  • Removed closing on build, prevents auto close.

    Removed closing on build, prevents auto close.

    Removing this._animationController.reverse(); prevents the widget from auto closing when the widget gets rebuild.

    opened by robinbonnes 0
  • Açılır menü 0001

    Açılır menü 0001

    Açılır Menü 0001

    opened by urbiyan 0
  • Açılır menu

    Açılır menu

    Açılır menu

    opened by urbiyan 0
  • Able to use Widget instead Icon types

    Able to use Widget instead Icon types

    Task: Able to use IconImage instead Icon types. Flexibile change of color and size of parentButton and FinalButton. Decision:

    1. Minor changes of parameters declaration with change Icon to WIdget class type

    2. Change of animation for parent button when called FloatingActionButton for rendering of parent button Result:

    3. Able use ani Icon images for FAB

    4. Possibilities change of color, size and other setting for icons which used for parent button Example:

      return UnicornDialer( parentButtonBackground: Colors.white, orientation: UnicornOrientation.VERTICAL, parentButton: ImageIcon( AssetImage("images/icons/creaz nuovi contenuti.png"), size: 40, color: Colors.black, ), finalButtonIcon: ImageIcon( AssetImage("images/icons/x cancella.png"), size: 40, color: Colors.black, ), childButtons: childButtons);

    opened by ra-develop 0
  • UnicornButton onPressed not responding.

    UnicornButton onPressed not responding.

    Hi

    The real issue is the notch draw Screenshot 2020-06-19 at 14 49 32

    Can somebody help,

    If i add a height parameter, the notch draw work fine, but then children -> OnPressed doesn't work Regards

    opened by rakeshshahu 2
Owner
Tiago Martins
Tiago Martins
Widget for displaying waves with custom color, duration, floating and blur effects.

Wave Widget for displaying waves with custom color, duration, floating and blur effects. Getting Started WaveWidget( config: CustomConfig(

Protoss 747 Jan 9, 2022
Rotate Dial Lock

Rotary dial Locker Dependencies : How it works Most magic handle by GuesterDetector. onPanEnd onPanDown onPanUpdate SpringHouse, 1st we locate where u

Md. Yeasin Sheikh 6 Sep 28, 2021
GitHub action to react on the empty issue

Crystal Ball Crystal ball is an easy app to check if github an issue can be consider as invalid or dummy. It's also a GitHub action which simplify usa

Marcin Niemira 3 Sep 3, 2021
A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.

A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content. Installation Add dependency to your pubspec.yaml

Anatoly Pulyaevskiy 258 Jan 14, 2022
Instagram post style button/card made for flutter

Instagram post style button/card made for flutter

Ismael Shakverdiev 9 Oct 17, 2021
A 3D pushable button built in Flutter. Ideal for important CTAs in the app.

Pushable Button A 3D pushable button built in Flutter. Ideal for important CTAs in the app. Usage PushableButton( child: Text('ENROLL NOW', style: s

Andrea Bizzotto 14 Nov 8, 2021
Provides login screen with login/signup functionalities to help speed up development

Flutter Login FlutterLogin is a ready-made login/signup widget with many animation effects to demonstrate the capabilities of Flutter Installation Fol

Near Huscarl 1k Jan 20, 2022
Speed Code 2 - 漂亮的饮料食谱 App

?? 饮料食谱 App - 登录 UI - Speed Code ?? 项目介绍 ?? 这是我的第 2 个 Speed Code 视频,通过此项目视频你可以学习到如下 Widget 的基础或进阶用法,更重要的你可以学习到如何将这些 Widget 灵活的组合最终实现上面 ?? 的效果。如果觉得有用可以

Zero 45 Nov 15, 2021
Been together app with undo button

been_together_undo A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

Nguyễn Đức Mạnh 5 Nov 23, 2021
Flutter Responsive Game of Thrones Flutter App Flutter Responsive Game of Thrones Flutter App

got_2019 A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Pawan Kumar 15 Nov 25, 2021
Flutter RxDart Explained - The Flutter Way Flutter RxDart Explained - The Flutter Way

rx_demo A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Pawan Kumar 27 Oct 13, 2021
Flutter Gallery is a resource to help developers evaluate and use Flutter

Flutter Gallery Flutter Gallery is a resource to help developers evaluate and use Flutter. It is a collection of Material Design & Cupertino widgets,

Flutter 3.3k Jan 13, 2022
Flutter Sticky Headers - Lets you place "sticky headers" into any scrollable content in your Flutter app. No special wrappers or magic required. Maintainer: @slightfoot

Flutter Sticky Headers Lets you place headers on scrollable content that will stick to the top of the container whilst the content is scrolled. Usage

Flutter Community 758 Jan 15, 2022
File picker plugin for Flutter, compatible with both iOS & Android and desktop (go-flutter).

File Picker A package that allows you to use the native file explorer to pick single or multiple files, with extensions filtering support. Currently s

Miguel Ruivo 741 Jan 13, 2022
Plugin to access VPN service for Flutter | Flutter 的 VPN 插件

Flutter VPN plugin This plugin help developers to access VPN service in their flutter app. 本插件帮助开发者在自己的应用内调用 VPN 服务。 The Android part was implemented

Xdea 215 Jan 15, 2022
Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flutter Music Player First Open Source Flutter based Beautiful Material Design Music Player(Online Radio will be added soon.) Demo App Play Store BETA

Pawan Kumar 1.3k Jan 16, 2022
Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter. It lets you define translations for your content

Florin Bratan 284 Dec 21, 2021
Flutter Gender Prediction App Flutter Gender Prediction App

gender_predictor A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Pawan Kumar 27 Nov 25, 2021
Beautiful Nike Web Design Concept With Flutter Beautiful Nike Web Design Concept With Flutter

flutter_web_nike A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Pawan Kumar 22 Nov 18, 2021
Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flutter Music Player First Open Source Flutter based Beautiful Material Design Music Player(Online Radio will be added soon.) Demo App Play Store BETA

Pawan Kumar 1.3k Jan 10, 2022
Flutter Login Page Bloc Pattern App Flutter Login Page Bloc Pattern App

gdgbloc A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Pawan Kumar 95 Oct 12, 2021
Flutter: QR Code Scanner App Flutter: QR Code Scanner App

Flutter QRCode Scanner APP Show some ❤️ and star the repo to support the project A new Flutter project. Features Scan 2D barcodes Scan QR codes Contro

Pawan Kumar 246 Jan 4, 2022
Flutter: Integrate Google Maps Tutorial Flutter: Integrate Google Maps Tutorial

Flutter Google Maps APP Show some ❤️ and star the repo to support the project A new Flutter project. Getting Started Flutter Project Add this to your

Pawan Kumar 67 Jul 6, 2021
Google places picker plugin for flutter. Opens up the google places picker on ios and android returning the chosen place back to the flutter app.

flutter_places_dialog Shows a places picker dialog in ios and android, returning the data in the places picker to the app. Getting Started Generate yo

null 46 Jan 5, 2022
🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]

Animated Text Kit A flutter package which contains a collection of some cool and awesome text animations. Recommended package for text animations in C

Ayush Agarwal 1.3k Jan 18, 2022
Flutter Version Management: A simple CLI to manage Flutter SDK versions.

fvm Flutter Version Management: A simple cli to manage Flutter SDK versions. FVM helps with the need for a consistent app builds by allowing to refere

Leo Farias 2.3k Jan 19, 2022
A flutter utility to easily create flavors in your flutter application

Flutter Flavorizr A flutter utility to easily create flavors in your flutter application Getting Started Let's start by setting up our environment in

Angelo Cassano 166 Jan 11, 2022