item_feedback.dart 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import 'package:cpt_main/modules/demo_page.dart';
  2. import 'package:cs_resources/generated/assets.dart';
  3. import 'package:cs_resources/theme/app_colors_theme.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:widgets/ext/ex_widget.dart';
  6. import 'package:widgets/my_load_image.dart';
  7. import 'package:widgets/my_text_view.dart';
  8. class FeedbackItem extends StatelessWidget {
  9. final int index;
  10. final String item;
  11. const FeedbackItem({
  12. required this.index,
  13. required this.item,
  14. });
  15. @override
  16. Widget build(BuildContext context) {
  17. return Container(
  18. margin: const EdgeInsets.only(left: 15, right: 15, top: 5, bottom: 5),
  19. padding: const EdgeInsets.symmetric(vertical: 19, horizontal: 18.5),
  20. decoration: BoxDecoration(
  21. color: context.appColors.whiteBG,
  22. borderRadius: BorderRadius.circular(6.0), // 圆角
  23. boxShadow: [
  24. BoxShadow(
  25. color: const Color(0xFFB8BFD9).withOpacity(0.3), // 阴影颜色
  26. offset: const Offset(0, 3), // 阴影的偏移量
  27. blurRadius: 8.0, // 模糊半径
  28. spreadRadius: 3.0, // 扩散半径
  29. ),
  30. ],
  31. ),
  32. child: Column(
  33. crossAxisAlignment: CrossAxisAlignment.start,
  34. children: [
  35. Row(
  36. children: [
  37. const MyAssetImage(Assets.mainFeedbackItemIcon, width: 42.5, height: 44),
  38. Column(
  39. children: [
  40. MyTextView(
  41. "Exchange old houses for new ones",
  42. fontSize: 16,
  43. textColor: context.appColors.textBlack,
  44. isFontMedium: true,
  45. ),
  46. MyTextView(
  47. "Why are there no implementation rules and application methods for something",
  48. fontSize: 14,
  49. marginTop: 5,
  50. textColor: context.appColors.textBlack,
  51. isFontRegular: true,
  52. ),
  53. ],
  54. ).expanded(),
  55. ],
  56. ),
  57. //备注
  58. MyTextView(
  59. "18 Sep 2024 18:00 | Security | In Progress",
  60. fontSize: 12,
  61. marginTop: 10,
  62. textColor: context.appColors.textDarkGray,
  63. isFontRegular: true,
  64. ),
  65. ],
  66. ),
  67. );
  68. }
  69. }