IconCard constructor
const
IconCard({ - Key? key,
- required String title,
- required IconData icon,
- double height = 100,
- double textScaleFactor = 1,
- Color? accentColor,
- String? description,
- GestureTapCallback? onTap,
- double? elevation,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<bool>? onHighlightChanged,
- ValueChanged<bool>? onHover,
- MouseCursor? mouseCursor,
- bool enableFeedback = true,
- ValueChanged<bool>? onFocusChange,
- bool autofocus = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- WidgetStatesController? statesController,
- Duration? hoverDuration,
- string? tooltip,
- double radius = 5,
})
Implementation
const IconCard({
super.key,
required this.title,
required this.icon,
this.height = 100,
this.textScaleFactor = 1,
this.accentColor,
this.description,
this.onTap,
this.elevation,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onDoubleTap,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onHighlightChanged,
this.onHover,
this.mouseCursor,
this.enableFeedback = true,
this.onFocusChange,
this.autofocus = false,
this.focusNode,
this.canRequestFocus = true,
this.statesController,
this.hoverDuration,
this.tooltip,
this.radius = 5,
});