CustomEmptyWidgetHelper class

A utility class providing helper functions for CustomEmptyWidget styling and theming.

This class contains static methods that assist in maintaining consistent typography and styling across empty state widgets throughout the CulicidaeLab application. It helps ensure visual consistency and proper theme integration.

Purpose

  • Typography Consistency: Standardize font sizes across empty states
  • Theme Integration: Ensure empty states respect app-wide theme settings
  • Accessibility Support: Provide font sizes that scale with user preferences
  • Maintenance: Centralize styling logic for easier updates

Usage Example

final fontSize = CustomEmptyWidgetHelper.getFontSize(context);
final customStyle = TextStyle(
  fontSize: fontSize,
  color: Colors.grey.shade600,
);

CustomEmptyWidget(
  title: 'No results',
  titleTextStyle: customStyle,
)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getFontSize(BuildContext context) double?
Retrieves the font size from the current theme's body medium text style.