NZFloatingActionButton.standard constructor
NZFloatingActionButton.standard({})
快速创建标准样式 FAB (图标 + 文字)
Implementation
factory NZFloatingActionButton.standard({
Key? key,
required VoidCallback onPressed,
required Widget icon,
required String label,
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,
label: label,
type: NZFloatingActionButtonType.standard,
draggable: draggable,
initialPosition: initialPosition,
scrollController: scrollController,
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
heroTag: heroTag,
tooltip: tooltip,
);