CustomThermometer constructor

const CustomThermometer({
  1. Key? key,
  2. required double temperature,
  3. Color? mercuryColor,
  4. Gradient? mercuryGradient,
  5. Color? bulbColor,
  6. Gradient? bulbGradient,
  7. Color tubeColor = Colors.white,
  8. Gradient? tubeGradient,
  9. bool showBorder = true,
  10. Color borderColor = Colors.white,
  11. double borderWidth = 2.0,
  12. bool showFahrenheit = true,
  13. bool showCelsius = true,
  14. Color scaleColor = Colors.grey,
  15. double scaleTextSize = 11,
  16. double height = 380,
  17. double width = 50,
  18. double bulbSize = 70,
  19. Duration animationDuration = const Duration(milliseconds: 500),
  20. Curve animationCurve = Curves.easeOut,
})

Implementation

const CustomThermometer({
  super.key,
  required this.temperature,

  // Mercury/Liquid styling
  this.mercuryColor,
  this.mercuryGradient,

  // Bulb styling
  this.bulbColor,
  this.bulbGradient,

  // Tube styling
  this.tubeColor = Colors.white,
  this.tubeGradient,

  // Border
  this.showBorder = true,
  this.borderColor = Colors.white,
  this.borderWidth = 2.0,

  // Scales
  this.showFahrenheit = true,
  this.showCelsius = true,
  this.scaleColor = Colors.grey,
  this.scaleTextSize = 11,

  // Sizes
  this.height = 380,
  this.width = 50,
  this.bulbSize = 70,

  // Animation
  this.animationDuration = const Duration(milliseconds: 500),
  this.animationCurve = Curves.easeOut,
});