45 lines
1.2 KiB
Dart
45 lines
1.2 KiB
Dart
import 'package:agrilink_vocpro/core/constant/app_color.dart';
|
|
import 'package:agrilink_vocpro/core/constant/app_theme.dart';
|
|
import 'package:agrilink_vocpro/features/humidity/widgets/circle_chart.dart';
|
|
import 'package:bootstrap_icons/bootstrap_icons.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class HumidityScreen extends StatelessWidget {
|
|
const HumidityScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('Humidity', style: AppTheme.titleLarge),
|
|
centerTitle: true,
|
|
backgroundColor: Colors.white,
|
|
actions: const [
|
|
Padding(
|
|
padding: EdgeInsets.only(right: 16),
|
|
child: Icon(
|
|
BootstrapIcons.droplet_half,
|
|
color: Colors.blue,
|
|
),
|
|
)
|
|
],
|
|
),
|
|
body: SafeArea(
|
|
child: ListView(
|
|
children: [
|
|
SizedBox(
|
|
height: MediaQuery.of(context).size.height * 0.05,
|
|
),
|
|
const SizedBox(
|
|
height: 320,
|
|
width: double.infinity,
|
|
child: CircleChart(humidityPercentage: 60.5),
|
|
),
|
|
const SizedBox(height: 16),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|