Advertisement
Guest User

Untitled

a guest
Jul 14th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 5.66 KB | None | 0 0
  1.                                     return AnimatedContainer(
  2.                                       duration: Duration(milliseconds: 500),
  3.                                       curve: Curves.fastOutSlowIn,
  4.                                       child: Padding(
  5.                                         padding: EdgeInsets.only(
  6.                                             right: hp(2),
  7.                                             left: hp(2),
  8.                                             top: hp(0),
  9.                                             bottom: hp(2)),
  10.                                         child: Row(
  11.                                           crossAxisAlignment:
  12.                                               CrossAxisAlignment.start,
  13.                                           children: <Widget>[
  14.                                             Expanded(
  15.                                               child: Padding(
  16.                                                 padding: EdgeInsets.only(
  17.                                                     right: wp(2.5)),
  18.                                                 child: Column(
  19.                                                   children: <Widget>[
  20.                                                     Align(
  21.                                                       alignment:
  22.                                                           Alignment.centerRight,
  23.                                                       child: Padding(
  24.                                                         padding:
  25.                                                             EdgeInsets.only(
  26.                                                                 bottom:
  27.                                                                     hp(0.5)),
  28.                                                         child: Text(
  29.                                                           m['sender']
  30.                                                               .toString(),
  31.                                                           style: TextStyle(
  32.                                                               fontSize: wp(4),
  33.                                                               color:
  34.                                                                   Colors.white,
  35.                                                               fontWeight:
  36.                                                                   FontWeight
  37.                                                                       .bold),
  38.                                                         ),
  39.                                                       ),
  40.                                                     ),
  41.                                                     Flexible(
  42.                                                       fit: FlexFit.tight,
  43.                                                       flex: 0,
  44.                                                       child: Align(
  45.                                                         alignment: Alignment
  46.                                                             .centerRight,
  47.                                                         child: Container(
  48.                                                           decoration:
  49.                                                               ShapeDecoration(
  50.                                                             color: Colors.white,
  51.                                                             shape: RoundedRectangleBorder(
  52.                                                                 borderRadius:
  53.                                                                     BorderRadius
  54.                                                                         .circular(
  55.                                                                             12.5)),
  56.                                                           ),
  57.                                                           child: Padding(
  58.                                                             padding:
  59.                                                                 EdgeInsets.all(
  60.                                                                     hp(1)),
  61.                                                             child: Text(
  62.                                                               m['message']
  63.                                                                   .toString(),
  64.                                                               style: TextStyle(
  65.                                                                   fontSize:
  66.                                                                       wp(3.5),
  67.                                                                   color: Colors
  68.                                                                       .black,
  69.                                                                   fontWeight:
  70.                                                                       FontWeight
  71.                                                                           .normal),
  72.                                                             ),
  73.                                                           ),
  74.                                                         ),
  75.                                                       ),
  76.                                                     ),
  77.                                                   ],
  78.                                                 ),
  79.                                               ),
  80.                                             ),
  81.                                           ],
  82.                                         ),
  83.                                       ),
  84.                                     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement