CNLiquidText constructor
const
CNLiquidText({
- Key? key,
- required String text,
- double fontSize = 16.0,
- FontWeight fontWeight = FontWeight.normal,
- Color? textColor,
- LiquidGlassConfig glassConfig = const LiquidGlassConfig(),
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
- 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,
});