Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
unloading_stats_card.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import '../../../../../core/ui/widgets/stats_card.dart';
4import '../../../../../core/ui/theme/color_palette.dart';
5
6class UnloadingStatsCard extends StatelessWidget {
7 final int collectionsCount;
8 final int totalVolume;
9
11 super.key,
12 required this.collectionsCount,
13 required this.totalVolume,
14 });
15
16 @override
17 Widget build(BuildContext context) {
18 return Padding(
19 padding: EdgeInsets.symmetric(horizontal: 15.sp),
21 gradient: LinearGradient(
22 colors: [
24 ColorPalette.darkGreen.withValues(alpha: 0.9),
25 ],
26 ),
27 title: 'Collections to unloading',
28 number: collectionsCount.toString(),
29 subtitle: '$totalVolume L',
30 ),
31 );
32 }
33}
static const darkGreen
final String title
final Widget child
final LinearGradient gradient
override Widget build(BuildContext context)
const StatsCard({ super.key, required this.title, required this.number, required this.subtitle, required this.gradient, this.unit, })
final EdgeInsets padding
final double totalVolume
const UnloadingStatsCard({ super.key, required this.collectionsCount, required this.totalVolume, })
final String subtitle