TextLiquidFill constructor
TextLiquidFill({
- Key? key,
- required String text,
- TextStyle textStyle = const TextStyle(fontSize: 140, fontWeight: FontWeight.bold),
- TextAlign textAlign = TextAlign.left,
- Duration loadDuration = const Duration(seconds: 6),
- Duration waveDuration = const Duration(seconds: 2),
- double boxHeight = 250,
- double boxWidth = 400,
- Color boxBackgroundColor = Colors.black,
- Color waveColor = Colors.blueAccent,
- double loadUntil = 1.0,
Implementation
TextLiquidFill({
Key? key,
required this.text,
this.textStyle =
const TextStyle(fontSize: 140, fontWeight: FontWeight.bold),
this.textAlign = TextAlign.left,
this.loadDuration = const Duration(seconds: 6),
this.waveDuration = const Duration(seconds: 2),
this.boxHeight = 250,
this.boxWidth = 400,
this.boxBackgroundColor = Colors.black,
this.waveColor = Colors.blueAccent,
this.loadUntil = 1.0,
}) : assert(loadUntil > 0 && loadUntil <= 1.0),
super(key: key);