Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- Expanded(
- flex: 6,
- child: Container(
- decoration: BoxDecoration(
- color: kTileBackgroundColor,
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(kBorderRadiusforDaysTile),
- bottomLeft: Radius.circular(kBorderRadiusforDaysTile),
- ),
- ),
- alignment: Alignment.centerLeft,
- padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
- child: FittedBox(
- fit: BoxFit.contain,
- child: Text(
- widget.data.message,
- maxLines: 1,
- style: TextStyle(
- fontSize: 20,
- color: Colors.white,
- fontWeight: FontWeight.w400,
- ),
- ),
- ),
- ),
- ),
- Container(
- alignment: Alignment.center,
- height: 40,
- child: Text(
- '${widget.data.daysDifference.abs()}',
- style: TextStyle(
- color: Colors.white,
- fontSize: 20,
- fontWeight: FontWeight.bold,
- ),
- ),
- color: widget.data.daysDifference.isNegative
- ? Color(0xFFFB9551)
- : Color(0xFF42AEFF),
- ),
- Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.only(
- // bottomRight: Radius.circular(kBorderRadiusforDaysTile),
- // topRight: Radius.circular(kBorderRadiusforDaysTile),
- ),
- color: widget.data.daysDifference.isNegative
- ? Color(0xFFFA6400)
- : Color(0xFF0091FF),
- ),
- alignment: Alignment.center,
- height: 40,
- child: Text(
- 'D',
- style: TextStyle(
- fontSize: 20,
- fontWeight: FontWeight.w400,
- color: Colors.white,
- ),
- ),
- ),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement