custom_thermometer 1.0.1 copy "custom_thermometer: ^1.0.1" to clipboard
custom_thermometer: ^1.0.1 copied to clipboard

A highly customizable thermometer widget for Flutter apps. features dual scales (Celsius/Fahrenheit), custom colors, gradients, and animations.

Custom Thermometer #

A fully customizable thermometer widget for Flutter applications.

Features #

  • Dual Scales: Optional Fahrenheit and Celsius scales.
  • Customizable Colors: Control colors for mercury, bulb, tube, border, and scales.
  • Gradients: Support for gradients on mercury, bulb, and tube.
  • Animations: Smooth animation when temperature changes.
  • Responsive: Adjustable height, width, and bulb size.

Usage #

import 'package:custom_thermometer/custom_thermometer.dart';
import 'package:flutter/material.dart';

class MyThermometerPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CustomThermometer(
          temperature: 25.0, // Current temperature in Celsius
          mercuryColor: Colors.red,
          showFahrenheit: true,
          showCelsius: true,
          height: 400,
        ),
      ),
    );
  }
}

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  custom_thermometer: ^1.0.0
3
likes
160
points
113
downloads

Publisher

unverified uploader

Weekly Downloads

A highly customizable thermometer widget for Flutter apps. features dual scales (Celsius/Fahrenheit), custom colors, gradients, and animations.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_thermometer