Advertisement
mlicodex

Untitled

Feb 22nd, 2020
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.26 KB | None | 0 0
  1. [
  2.             Expanded(
  3.               flex: 6,
  4.               child: Container(
  5.                 decoration: BoxDecoration(
  6.                   color: kTileBackgroundColor,
  7.                   borderRadius: BorderRadius.only(
  8.                     topLeft: Radius.circular(kBorderRadiusforDaysTile),
  9.                     bottomLeft: Radius.circular(kBorderRadiusforDaysTile),
  10.                   ),
  11.                 ),
  12.                 alignment: Alignment.centerLeft,
  13.                 padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
  14.                 child: FittedBox(
  15.                   fit: BoxFit.contain,
  16.                   child: Text(
  17.                     widget.data.message,
  18.                     maxLines: 1,
  19.                     style: TextStyle(
  20.                       fontSize: 20,
  21.                       color: Colors.white,
  22.                       fontWeight: FontWeight.w400,
  23.                     ),
  24.                   ),
  25.                 ),
  26.               ),
  27.             ),
  28.             Container(
  29.               alignment: Alignment.center,
  30.               height: 40,
  31.               child: Text(
  32.                 '${widget.data.daysDifference.abs()}',
  33.                 style: TextStyle(
  34.                   color: Colors.white,
  35.                   fontSize: 20,
  36.                   fontWeight: FontWeight.bold,
  37.                 ),
  38.               ),
  39.               color: widget.data.daysDifference.isNegative
  40.                   ? Color(0xFFFB9551)
  41.                   : Color(0xFF42AEFF),
  42.             ),
  43.             Container(
  44.               decoration: BoxDecoration(
  45.                 borderRadius: BorderRadius.only(
  46.                     // bottomRight: Radius.circular(kBorderRadiusforDaysTile),
  47.                     // topRight: Radius.circular(kBorderRadiusforDaysTile),
  48.                     ),
  49.                 color: widget.data.daysDifference.isNegative
  50.                     ? Color(0xFFFA6400)
  51.                     : Color(0xFF0091FF),
  52.               ),
  53.               alignment: Alignment.center,
  54.               height: 40,
  55.               child: Text(
  56.                 'D',
  57.                 style: TextStyle(
  58.                   fontSize: 20,
  59.                   fontWeight: FontWeight.w400,
  60.                   color: Colors.white,
  61.                 ),
  62.               ),
  63.             ),
  64.           ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement