item_facility_deposit.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import 'package:cs_resources/generated/l10n.dart';
  2. import 'package:cs_resources/theme/app_colors_theme.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:widgets/ext/ex_widget.dart';
  5. import 'package:widgets/my_load_image.dart';
  6. import 'package:widgets/my_text_view.dart';
  7. /// 设施的Deposit的Item
  8. class FacilityDepositItem extends StatelessWidget {
  9. final int index;
  10. final String item;
  11. const FacilityDepositItem({
  12. required this.index,
  13. required this.item,
  14. });
  15. @override
  16. Widget build(BuildContext context) {
  17. return Container(
  18. width: double.infinity,
  19. color: context.appColors.whiteBG,
  20. margin: const EdgeInsets.only(top: 5),
  21. padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 23),
  22. child: Column(
  23. crossAxisAlignment: CrossAxisAlignment.start,
  24. children: [
  25. MyTextView(
  26. "Function Room Orange Room",
  27. fontSize: 16.5,
  28. textColor: context.appColors.textPrimary,
  29. isFontMedium: true,
  30. ),
  31. Row(
  32. children: [
  33. MyTextView(
  34. S.current.deposit_hold,
  35. fontSize: 14.5,
  36. textColor: context.appColors.textBlack,
  37. isFontMedium: true,
  38. ),
  39. const Spacer(),
  40. MyTextView(
  41. "\$100.00",
  42. fontSize: 14.5,
  43. textColor: context.appColors.textBlack,
  44. isFontMedium: true,
  45. ),
  46. ],
  47. ).marginOnly(top: 10),
  48. ],
  49. ).expanded(),
  50. );
  51. }
  52. }