Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
dashboard_data_loaded_view.dart
Go to the documentation of this file.
1import '/features/dashboard/presentation/dashboard_screen/widgets/last_three_months_performance_card.dart';
2import '/features/dashboard/presentation/dashboard_screen/widgets/monthly_collection_performance_card.dart';
3import '/features/dashboard/presentation/dashboard_screen/widgets/this_month_earnings_card.dart';
4import 'package:flutter/material.dart';
5import 'package:flutter_screenutil/flutter_screenutil.dart';
6import '../../../domain/entities/dashboard_entity.dart';
7
8class DashboardDataLoadedView extends StatelessWidget {
10 super.key,
11 required this.entity,
12 });
13
15
16 @override
17 Widget build(BuildContext context) {
18 return SingleChildScrollView(
19 padding: EdgeInsets.symmetric(horizontal: 15.sp, vertical: 15.sp),
20 child: Column(
21 crossAxisAlignment: CrossAxisAlignment.start,
22 children: [
24 volumeDeclared: entity.volumeDeclared,
25 volumeCollected: entity.volumeCollected,
26 collectionNumbers: entity.collectionNumbers,
27 declaredvsCollected: entity.declaredVsCollected,
28 wastPerformance: entity.westPerformance,
29 ),
30 SizedBox(height: 10.sp),
31 ThisMonthEarningCard(
32 earningActualMonth: entity.earningActualMonth,
33 earningLastMonth: entity.earningLastMonth,
34 ),
35 SizedBox(height: 10.sp),
36 LastThreeMonthsPerformanceCard(
37 earningActualMonth: entity.earningActualMonth,
38 earningLastMonth: entity.earningLastMonth,
39 earningLastTwoMonth: entity.earningLastTwoMonth,
40 ),
41 ],
42 ),
43 );
44 }
45}
final DashboardEntity entity
final Widget child
override Widget build(BuildContext context)
const DashboardDataLoadedView({ super.key, required this.entity, })
const MonthlyCollectionsPerformanceCard({ super.key, required this.volumeDeclared, required this.volumeCollected, required this.collectionNumbers, required this.declaredvsCollected, required this.wastPerformance, })