A simple package for adding a Diamond Floating Action Button or FAB to a flutter application. This FAB also allows for a notch to be made inside of the Bottom Application Bar or Bottom Navigation Bar based on the positioning.
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
diamond_notched_fab: ^0.0.1
//...
fabButton() => DiamondNotchedFab(
onPressed: (){},
backgroundColor: Colors.greenAccent,
child: Icon(Icons.add),
);
//...
//...
bottomBar() => BottomAppBar(
notchMargin: 8,
shape: DiamondFabNotchedShape(),
color: Colors.indigo,
child: Container(height: 60.0),
);
//...
For help getting started with Flutter, view our online documentation.