CNLiquidText constructor

const CNLiquidText({
  1. Key? key,
  2. required String text,
  3. double fontSize = 16.0,
  4. FontWeight fontWeight = FontWeight.normal,
  5. Color? textColor,
  6. LiquidGlassConfig glassConfig = const LiquidGlassConfig(),
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
  8. TextStyle? fallbackStyle,
})

Creates a native text widget with a Liquid Glass effect.

Implementation

const CNLiquidText({
  super.key,
  required this.text,
  this.fontSize = 16.0,
  this.fontWeight = FontWeight.normal,
  this.textColor,
  this.glassConfig = const LiquidGlassConfig(),
  this.padding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
  this.fallbackStyle,
});