NZFloatingActionButton.standard constructor

NZFloatingActionButton.standard({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget icon,
  4. required String label,
  5. bool draggable = false,
  6. Offset initialPosition = const Offset(20, 20),
  7. ScrollController? scrollController,
  8. Color? backgroundColor,
  9. Color? foregroundColor,
  10. Object? heroTag,
  11. String? tooltip,
})

快速创建标准样式 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,
);