ArticleInfo.dart 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. title: Text('资讯'),
  11. leading: Icon(Icons.arrow_back_ios),
  12. // backgroundColor: Colors.transparent,
  13. centerTitle: true,
  14. ),
  15. body: Container(
  16. padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
  17. child: Column(
  18. children: [
  19. Container(
  20. alignment: Alignment.center,
  21. child: Row(
  22. mainAxisAlignment: MainAxisAlignment.center,
  23. children: [
  24. Image(image: AssetImage('images/icons/decorate.png'),width: 17,),
  25. Text('我是22222222222标题',
  26. style: TextStyle(
  27. fontSize: 17.sp,
  28. fontWeight: FontWeight.bold,
  29. ),
  30. ),
  31. Image(image: AssetImage('images/icons/decorate.png'),width: 17),
  32. ],
  33. ),
  34. ),
  35. Container(
  36. padding: EdgeInsets.fromLTRB(0, 20, 0, 10),
  37. width: 344.w,
  38. child: Text('gr一年之计在于春,连日来,农业生产工作正在热火朝天的进行着:农技人员走村串户指导农户春耕生产,大型拖拉机忙着翻垦农田,植保无人机 ',
  39. style: TextStyle(
  40. fontSize: 14.sp
  41. ),
  42. ) ,
  43. ),
  44. Container(
  45. padding: EdgeInsets.fromLTRB(0, 10, 0,10),
  46. child: Image(image: AssetImage('images/cars.png'),width:320.w,height:260.w,fit: BoxFit.fill,),
  47. )
  48. ],
  49. ),
  50. ),
  51. );
  52. }
  53. }