Advertisement
Guest User

Untitled

a guest
Feb 15th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. Widget todaySection(prefix0.Route route) {
  2. return Row(
  3. mainAxisSize: MainAxisSize.max,
  4. mainAxisAlignment: MainAxisAlignment.start,
  5. children: <Widget>[
  6. Expanded(
  7. flex: 2,
  8. child: Padding(
  9. padding: const EdgeInsets.only(left: 10),
  10. child: Column(
  11. children: <Widget>[
  12. Text(
  13. AppLocalizations.of(context).tr('busList.from'),
  14. style: TextStyle(
  15. fontFamily: 'Roboto',
  16. fontSize: 2.18 * SizeConfig.textMultiplier,
  17. fontWeight: FontWeight.w800,
  18. color: Colors.grey,
  19. ),
  20. ),
  21. SizedBox(
  22. height: 5,
  23. ),
  24. Text(
  25. route.source,
  26. maxLines: 2,
  27. softWrap: true,
  28. textAlign: TextAlign.center,
  29. style: TextStyle(
  30. fontFamily: 'Roboto',
  31. fontSize: 2.4 * SizeConfig.textMultiplier,
  32. fontWeight: FontWeight.w400,
  33. color: Colors.black,
  34. ),
  35. ),
  36. ],
  37. ),
  38. ),
  39. ),
  40. Expanded(
  41. flex: 3,
  42. child: Column(
  43. children: <Widget>[
  44. Text("20 ${AppLocalizations.of(context).tr('busList.km')}"),
  45. SizedBox(
  46. height: 2,
  47. ),
  48. Image.asset(
  49. "assets/route.png",
  50. height: 9.7 * SizeConfig.imageSizeMultiplier,
  51. color: Color.fromRGBO(204, 0, 51, 1),
  52. )
  53. ],
  54. ),
  55. ),
  56. Expanded(
  57. flex: 2,
  58. child: Padding(
  59. padding: const EdgeInsets.only(right: 10),
  60. child: Column(
  61. mainAxisSize: MainAxisSize.max,
  62. children: <Widget>[
  63. Text(
  64. AppLocalizations.of(context).tr('busList.to'),
  65. style: TextStyle(
  66. fontFamily: 'Roboto',
  67. fontSize: 2.18 * SizeConfig.textMultiplier,
  68. fontWeight: FontWeight.w800,
  69. color: Colors.grey,
  70. ),
  71. ),
  72. SizedBox(
  73. height: 5,
  74. ),
  75. Text(
  76. route.destination,
  77. maxLines: 2,
  78. softWrap: true,
  79. style: TextStyle(
  80. fontFamily: 'Roboto',
  81. fontSize: 2.4 * SizeConfig.textMultiplier,
  82. fontWeight: FontWeight.w400,
  83. color: Colors.black,
  84. ),
  85. ),
  86. ],
  87. ),
  88. ),
  89. )
  90. ],
  91. );
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement