NZFloatingActionButton.icon constructor
NZFloatingActionButton.icon({
- Key? key,
- required VoidCallback onPressed,
- required Widget icon,
- bool draggable = false,
- Offset initialPosition = const Offset(20, 20),
- ScrollController? scrollController,
- Color? backgroundColor,
- Color? foregroundColor,
- Object? heroTag,
- String? tooltip,
快速创建仅图标样式 FAB
Implementation
factory NZFloatingActionButton.icon({
Key? key,
required VoidCallback onPressed,
required Widget icon,
bool draggable = false,
Offset initialPosition = const Offset(20, 20),
ScrollController? scrollController,
Color? backgroundColor,
Color? foregroundColor,
Object? heroTag,
String? tooltip,
}) => NZFloatingActionButton(
key: key,
onPressed: onPressed,
icon: icon,
type: NZFloatingActionButtonType.icon,
draggable: draggable,
initialPosition: initialPosition,
scrollController: scrollController,
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
heroTag: heroTag,
tooltip: tooltip,
);