Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget todaySection(prefix0.Route route) {
- return Row(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- Expanded(
- flex: 2,
- child: Padding(
- padding: const EdgeInsets.only(left: 10),
- child: Column(
- children: <Widget>[
- Text(
- AppLocalizations.of(context).tr('busList.from'),
- style: TextStyle(
- fontFamily: 'Roboto',
- fontSize: 2.18 * SizeConfig.textMultiplier,
- fontWeight: FontWeight.w800,
- color: Colors.grey,
- ),
- ),
- SizedBox(
- height: 5,
- ),
- Text(
- route.source,
- maxLines: 2,
- softWrap: true,
- textAlign: TextAlign.center,
- style: TextStyle(
- fontFamily: 'Roboto',
- fontSize: 2.4 * SizeConfig.textMultiplier,
- fontWeight: FontWeight.w400,
- color: Colors.black,
- ),
- ),
- ],
- ),
- ),
- ),
- Expanded(
- flex: 3,
- child: Column(
- children: <Widget>[
- Text("20 ${AppLocalizations.of(context).tr('busList.km')}"),
- SizedBox(
- height: 2,
- ),
- Image.asset(
- "assets/route.png",
- height: 9.7 * SizeConfig.imageSizeMultiplier,
- color: Color.fromRGBO(204, 0, 51, 1),
- )
- ],
- ),
- ),
- Expanded(
- flex: 2,
- child: Padding(
- padding: const EdgeInsets.only(right: 10),
- child: Column(
- mainAxisSize: MainAxisSize.max,
- children: <Widget>[
- Text(
- AppLocalizations.of(context).tr('busList.to'),
- style: TextStyle(
- fontFamily: 'Roboto',
- fontSize: 2.18 * SizeConfig.textMultiplier,
- fontWeight: FontWeight.w800,
- color: Colors.grey,
- ),
- ),
- SizedBox(
- height: 5,
- ),
- Text(
- route.destination,
- maxLines: 2,
- softWrap: true,
- style: TextStyle(
- fontFamily: 'Roboto',
- fontSize: 2.4 * SizeConfig.textMultiplier,
- fontWeight: FontWeight.w400,
- color: Colors.black,
- ),
- ),
- ],
- ),
- ),
- )
- ],
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement