custom_thermometer 1.0.1
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.
example/lib/main.dart
import 'package:custom_thermometer/custom_thermometer.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Thermometer Example',
home: Scaffold(
appBar: AppBar(title: const Text('Thermometer Example')),
body: Center(
child: CustomThermometer(
temperature: 25.0,
mercuryColor: Colors.red,
showFahrenheit: true,
showCelsius: true,
height: 400,
),
),
),
);
}
}