item_feedback.dart 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. crossAxisAlignment: CrossAxisAlignment.start,
  40. children: [
  41. MyTextView(
  42. "Exchange old houses for new ones",
  43. fontSize: 16,
  44. textColor: context.appColors.textBlack,
  45. isFontMedium: true,
  46. ),
  47. MyTextView(
  48. "Why are there no implementation rules and application methods for something",
  49. fontSize: 14,
  50. marginTop: 5,
  51. textColor: context.appColors.textBlack,
  52. isFontRegular: true,
  53. ),
  54. ],
  55. ).marginOnly(left: 11).expanded(),
  56. ],
  57. ),
  58. //备注
  59. MyTextView(
  60. "18 Sep 2024 18:00 | Security | In Progress",
  61. fontSize: 12,
  62. marginTop: 10,
  63. textColor: context.appColors.textDarkGray,
  64. isFontRegular: true,
  65. ),
  66. ],
  67. ),
  68. );
  69. }
  70. }