Repository
https://github.com/tensor-programming/diamond_fab
New Projects
- What is the project about?
Diamond FAB (Floating Action Button) is a drop-in Package/Library for the Flutter framework that allows a developer to replace the aesthetics of the default round Floating Action Button with a Diamond shaped one. This Diamond FAB follows the Material Design Specification as seen in this article. The button features a 68 logical pixel default size as per the specification and a mini mode to decrease the size to 52 logical pixels. Included in the library is a default notch in the bottom application bar or bottom navigation bar depending on where the Floating Action Button is located in relation to this bottom bar. The FAB can be docked with the button bar which produces this open triangle notch and the size of this notch can be specified by the developer through the marginWidth
property. The FAB also includes all of the properties and configurations that are default to the original Floating Action Button which is bundled with the Flutter Framework with the exception of the expanded option (For more info: Flutter Floating Action Button Documentation).
Images:
Demonstration:
In this video, I highlight the main features of the Diamond FAB and also talk about how to install it. There are more features in the library as well such as the ability to change the size of the FAB, the ability to change the colors for both the foreground and background, the ability to change the icon on the button among other things.
- Technology Stack
This library is built with the Dart programming language and it requires the Flutter SDK to work properly. The library requires Dart 2.0.0-dev.28.0 or higher and Flutter SDK 0.1.4 or higher to run properly. At the time of this writing the current version of this library is 0.1.1
- Roadmap
My first consideration is to integrate this library into the official Flutter SDK as a default widget. The diamond shaped Floating Action Button is a part of the Material Design specification and so, it will need to be implemented into the Flutter Material Design SDK at some point.
My second consideration is to expand the library to allow the user to further customize the shape of the floating action button in ways that are not explicitly mentioned in the material design specification while still staying true to the specification. In this particular scenario, the library would become more of an API to allow the user to create their own FAB.
- How to contribute?
To Contribute to this project I encourage you to create a pull request or issue on Github