ArticleInfo.dart 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. class ArticleInfo extends StatelessWidget {
  4. const ArticleInfo({Key? key}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Scaffold(
  8. resizeToAvoidBottomInset: false,
  9. appBar: AppBar(
  10. elevation: 0,
  11. centerTitle: true,
  12. backgroundColor: Colors.white,
  13. title: Text(
  14. '资讯详情',
  15. style: TextStyle(
  16. color: Colors.black,
  17. fontSize: 17.sp,
  18. letterSpacing: 2,
  19. fontWeight: FontWeight.bold),
  20. ),
  21. ),
  22. body: Container(
  23. padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
  24. child: Column(
  25. children: [
  26. Container(
  27. alignment: Alignment.center,
  28. child: Row(
  29. mainAxisAlignment: MainAxisAlignment.center,
  30. children: [
  31. Image(image: AssetImage('images/icons/decorate.png'),width: 17,),
  32. Text('我是22222222222标题',
  33. style: TextStyle(
  34. fontSize: 17.sp,
  35. fontWeight: FontWeight.bold,
  36. ),
  37. ),
  38. Image(image: AssetImage('images/icons/decorate.png'),width: 17),
  39. ],
  40. ),
  41. ),
  42. Container(
  43. padding: EdgeInsets.fromLTRB(0, 20, 0, 10),
  44. width: 344.w,
  45. child: Text('gr一年之计在于春,连日来,农业生产工作正在热火朝天的进行着:农技人员走村串户指导农户春耕生产,大型拖拉机忙着翻垦农田,植保无人机 ',
  46. style: TextStyle(
  47. fontSize: 14.sp
  48. ),
  49. ) ,
  50. ),
  51. Container(
  52. padding: EdgeInsets.fromLTRB(0, 10, 0,10),
  53. child: Image(image: AssetImage('images/cars.png'),width:320.w,height:260.w,fit: BoxFit.fill,),
  54. )
  55. ],
  56. ),
  57. ),
  58. );
  59. }
  60. }