summary_widget.dart 1015 B

1234567891011121314151617181920212223242526272829303132333435
  1. import 'package:fitness_dashboard_ui/const/constant.dart';
  2. import 'package:fitness_dashboard_ui/widgets/pie_chart_widget.dart';
  3. import 'package:fitness_dashboard_ui/widgets/scheduled_widget.dart';
  4. import 'package:fitness_dashboard_ui/widgets/summary_details.dart';
  5. import 'package:flutter/material.dart';
  6. class SummaryWidget extends StatelessWidget {
  7. const SummaryWidget({super.key});
  8. @override
  9. Widget build(BuildContext context) {
  10. return Container(
  11. decoration: const BoxDecoration(
  12. color: cardBackgroundColor,
  13. ),
  14. child: Padding(
  15. padding: const EdgeInsets.all(20.0),
  16. child: Column(
  17. children: [
  18. SizedBox(height: 20),
  19. Chart(),
  20. Text(
  21. 'Summary',
  22. style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
  23. ),
  24. SizedBox(height: 16),
  25. SummaryDetails(),
  26. SizedBox(height: 40),
  27. Scheduled(),
  28. ],
  29. ),
  30. ),
  31. );
  32. }
  33. }