my_new_game.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:cached_network_image/cached_network_image.dart';
  2. import 'package:flutter/cupertino.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:sport/router/navigator_util.dart';
  5. // 我的游戏
  6. class MyNewGameItem extends StatelessWidget {
  7. @override
  8. Widget build(BuildContext context) {
  9. // TODO: implement build
  10. return ClipRRect(
  11. borderRadius: BorderRadius.circular(20),
  12. child: Container(
  13. width: double.infinity,
  14. height: 60,
  15. child: Row(
  16. children: <Widget>[
  17. InkWell(
  18. child: Container(
  19. child: CachedNetworkImage(
  20. imageUrl:
  21. "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2553120524,587873415&fm=26&gp=0.jpg",
  22. ),
  23. ),
  24. onTap: () {
  25. NavigatorUtil.goGameDetails(context);
  26. },
  27. ),
  28. Expanded(
  29. child: InkWell(
  30. child: Container(
  31. padding: EdgeInsets.only(left: 10.0, right: 5.0),
  32. child: Column(
  33. mainAxisAlignment: MainAxisAlignment.center,
  34. crossAxisAlignment: CrossAxisAlignment.start,
  35. children: <Widget>[
  36. Text("游戏名字不止七个字"),
  37. Text("游戏总时长105小时40分"),
  38. Row(
  39. children: <Widget>[
  40. Text("最近打开"),
  41. Text(
  42. "2020.06.20.19",
  43. style: TextStyle(color: Colors.blue),
  44. )
  45. ],
  46. )
  47. ],
  48. ),
  49. ),
  50. onTap: () {
  51. NavigatorUtil.goGameDetails(context);
  52. },
  53. ),
  54. ),
  55. Container(
  56. padding: EdgeInsets.symmetric(horizontal: 20.0),
  57. color: Colors.blue,
  58. alignment: Alignment.center,
  59. child: Text(
  60. "继续",
  61. style: TextStyle(color: Colors.white),
  62. ),
  63. )
  64. ],
  65. ),
  66. ),
  67. );
  68. }
  69. }