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

Libraries

custom_thermometer