w_crew.dart 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import 'package:flutter/material.dart';
  2. import 'package:gap/gap.dart';
  3. import 'package:tp5/core/core.dart';
  4. class WCrew extends StatelessWidget {
  5. const WCrew(
  6. {super.key, this.college, this.mle, this.name, this.fname, this.base});
  7. final String? college;
  8. final String? mle;
  9. final String? name;
  10. final String? fname;
  11. final String? base;
  12. @override
  13. Widget build(BuildContext context) {
  14. return Row(
  15. crossAxisAlignment: CrossAxisAlignment.start,
  16. children: [
  17. SizedBox(
  18. width: 60,
  19. height: 30,
  20. child: Text(
  21. textAlign: TextAlign.right,
  22. college ?? '--',
  23. style: const TextStyle(
  24. fontWeight: FontWeight.w800,
  25. fontSize: 18,
  26. color: Colors.blueGrey),
  27. overflow: TextOverflow.clip,
  28. ),
  29. ),
  30. const Gap(10),
  31. Column(
  32. crossAxisAlignment: CrossAxisAlignment.start,
  33. children: [
  34. Text("${name?.capitalizeword()}${fname == null ? '' : ", $fname"}"),
  35. Row(
  36. crossAxisAlignment: CrossAxisAlignment.end,
  37. children: [
  38. Text(
  39. mle ?? '-----',
  40. style: const TextStyle(fontSize: 9),
  41. ),
  42. const Gap(20),
  43. Text(
  44. base ?? '---',
  45. style: const TextStyle(
  46. fontSize: 12,
  47. fontWeight: FontWeight.w600,
  48. color: Colors.grey),
  49. ),
  50. ],
  51. )
  52. ],
  53. )
  54. ],
  55. );
  56. }
  57. }