NZFloatingActionButton constructor
const
NZFloatingActionButton({
- Key? key,
- required VoidCallback onPressed,
- Widget? icon,
- String? label,
- ImageProvider<
Object> ? image, - NZFloatingActionButtonType type = NZFloatingActionButtonType.standard,
- bool draggable = false,
- Offset initialPosition = const Offset(20, 20),
- ScrollController? scrollController,
- Color? backgroundColor,
- Color? foregroundColor,
- Object? heroTag,
- String? tooltip,
Implementation
const NZFloatingActionButton({
super.key,
required this.onPressed,
this.icon,
this.label,
this.image,
this.type = NZFloatingActionButtonType.standard,
this.draggable = false,
this.initialPosition = const Offset(20, 20),
this.scrollController,
this.backgroundColor,
this.foregroundColor,
this.heroTag,
this.tooltip,
});