item_home_property_news.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import 'package:cpt_main/modules/feedback/feedback_page.dart';
  2. import 'package:cs_resources/theme/app_colors_theme.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:shared/utils/util.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 PropertyNews extends StatelessWidget {
  9. PropertyNews();
  10. @override
  11. Widget build(BuildContext context) {
  12. return Row(
  13. crossAxisAlignment: CrossAxisAlignment.center,
  14. mainAxisAlignment: MainAxisAlignment.start,
  15. children: [
  16. MyLoadImage(
  17. "https://t11.baidu.com/it/u=4142771387,220552469&fm=30&app=106&f=JPEG?w=564&h=604&s=FA2FB04406270B0D68AE05910300509B",
  18. width: 80,
  19. height: 80,
  20. ),
  21. MyTextView(
  22. "Key Appeals and Performance of Nonlan-ded Properties in District 19",
  23. fontSize: 15,
  24. marginLeft: 12.5,
  25. marginRight: 12.5,
  26. maxLines: 4,
  27. textColor: context.appColors.textBlack,
  28. isFontMedium: true,
  29. ).expanded(),
  30. ],
  31. )
  32. .decorated(
  33. color: context.appColors.whiteBG,
  34. borderRadius: BorderRadius.circular(5.0), // 5个圆角
  35. boxShadow: [
  36. BoxShadow(
  37. color: const Color(0xFF656565).withOpacity(0.1), // 阴影颜色,并且设置透明度
  38. offset: const Offset(0, 1.5), // 阴影的偏移量
  39. blurRadius: 2.5, // 模糊半径
  40. spreadRadius: 1.5, // 扩散半径
  41. ),
  42. ],
  43. )
  44. .marginOnly(right: 10)
  45. .constrained(height: 80, width: 270);
  46. }
  47. }