scheduled_widget.dart 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import 'package:fitness_dashboard_ui/data/schedule_task_data.dart';
  2. import 'package:fitness_dashboard_ui/widgets/custom_card_widget.dart';
  3. import 'package:flutter/material.dart';
  4. class Scheduled extends StatelessWidget {
  5. const Scheduled({super.key});
  6. @override
  7. Widget build(BuildContext context) {
  8. final data = ScheduleTasksData();
  9. return Column(
  10. crossAxisAlignment: CrossAxisAlignment.start,
  11. children: [
  12. const Text(
  13. "Scheduled",
  14. style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
  15. ),
  16. const SizedBox(height: 12),
  17. for (var index = 0; index < data.scheduled.length; index++)
  18. Padding(
  19. padding: const EdgeInsets.symmetric(vertical: 5),
  20. child: CustomCard(
  21. color: Colors.black,
  22. child: Column(
  23. children: [
  24. Row(
  25. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  26. crossAxisAlignment: CrossAxisAlignment.start,
  27. children: [
  28. Column(
  29. crossAxisAlignment: CrossAxisAlignment.start,
  30. children: [
  31. Text(
  32. data.scheduled[index].title,
  33. style: const TextStyle(
  34. fontSize: 12, fontWeight: FontWeight.w500),
  35. ),
  36. const SizedBox(height: 2),
  37. Text(
  38. data.scheduled[index].date,
  39. style: const TextStyle(
  40. fontSize: 12,
  41. color: Colors.grey,
  42. fontWeight: FontWeight.w500),
  43. ),
  44. ],
  45. ),
  46. const Icon(Icons.more),
  47. ],
  48. ),
  49. ],
  50. ),
  51. ),
  52. ),
  53. ],
  54. );
  55. }
  56. }