item_home_manage_guide.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import 'package:cpt_main/modules/feedback/feedback_page.dart';
  2. import 'package:cs_resources/theme/app_colors_theme.dart';
  3. import 'package:domain/entity/home_list_entity.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 ManageGuideItem extends StatelessWidget {
  9. HomeListPropertyNews manageGuide;
  10. ManageGuideItem({required this.manageGuide});
  11. @override
  12. Widget build(BuildContext context) {
  13. return Column(
  14. crossAxisAlignment: CrossAxisAlignment.start,
  15. mainAxisAlignment: MainAxisAlignment.start,
  16. children: [
  17. MyLoadImage(
  18. manageGuide.coverImage,
  19. fit: BoxFit.contain,
  20. ).marginOnly(top: 10),
  21. MyTextView(
  22. manageGuide.title ?? "",
  23. marginLeft: 9,
  24. marginTop: 10,
  25. maxLines: 2,
  26. fontSize: 14,
  27. isFontMedium: true,
  28. textColor: context.appColors.tabTextUnSelectedPrimary,
  29. ),
  30. ],
  31. // ),
  32. )
  33. .decorated(
  34. color: context.appColors.lightBlueBg,
  35. borderRadius: BorderRadius.circular(5.0), // 5个圆角
  36. boxShadow: [
  37. BoxShadow(
  38. color: const Color(0xFF656565).withOpacity(0.1), // 阴影颜色,并且设置透明度
  39. offset: const Offset(0, 1.5), // 阴影的偏移量
  40. blurRadius: 2.5, // 模糊半径
  41. spreadRadius: 1.5, // 扩散半径
  42. ),
  43. ],
  44. )
  45. .marginOnly(right: 10)
  46. .constrained(width: 130, height: 142.5);
  47. }
  48. }