Guest User

Untitled

a guest
Jan 1st, 2020
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.58 KB | None | 0 0
  1. @override
  2. Widget build(BuildContext context) {
  3.   final backgroundColor =
  4.       useAlternateBackground ? const Color(0xFFF5F5F5) : Colors.white;
  5.  
  6.   return Material(
  7.     color: backgroundColor,
  8.     child: InkWell(
  9.       onTap: () => _navigateToEventDetails(context),
  10.       child: Padding(
  11.         padding: const EdgeInsets.symmetric(...),
  12.         child: Row(
  13.           children: [
  14.             Column(
  15.               children: [
  16.                 Text(
  17.                   hoursAndMins.format(show.start),
  18.                   style: const TextStyle(...),
  19.                 ),
  20.                 Text(
  21.                   hoursAndMins.format(show.end),
  22.                   style: const TextStyle(...),
  23.                 ),
  24.               ],
  25.             ),
  26.             const SizedBox(width: 20.0),
  27.             Expanded(
  28.               child: Column(
  29.                 crossAxisAlignment: CrossAxisAlignment.start,
  30.                 mainAxisAlignment: MainAxisAlignment.spaceBetween,
  31.                 children: [
  32.                   Text(
  33.                     show.title,
  34.                     style: const TextStyle(...),
  35.                   ),
  36.                   const SizedBox(height: 4.0),
  37.                   Text(show.theaterAndAuditorium),
  38.                   const SizedBox(height: 8.0),
  39.                   Container(
  40.                     // Presentation method chip.
  41.                     // Styling redacted for brevity ...
  42.                     child: Text(show.presentationMethod),
  43.                   ),
  44.                 ],
  45.               ),
  46.             ),
  47.           ],
  48.         ),
  49.       ),
  50.     ),
  51.   );
  52. }
Advertisement
Add Comment
Please, Sign In to add comment