Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return AnimatedContainer(
- duration: Duration(milliseconds: 500),
- curve: Curves.fastOutSlowIn,
- child: Padding(
- padding: EdgeInsets.only(
- right: hp(2),
- left: hp(2),
- top: hp(0),
- bottom: hp(2)),
- child: Row(
- crossAxisAlignment:
- CrossAxisAlignment.start,
- children: <Widget>[
- Expanded(
- child: Padding(
- padding: EdgeInsets.only(
- right: wp(2.5)),
- child: Column(
- children: <Widget>[
- Align(
- alignment:
- Alignment.centerRight,
- child: Padding(
- padding:
- EdgeInsets.only(
- bottom:
- hp(0.5)),
- child: Text(
- m['sender']
- .toString(),
- style: TextStyle(
- fontSize: wp(4),
- color:
- Colors.white,
- fontWeight:
- FontWeight
- .bold),
- ),
- ),
- ),
- Flexible(
- fit: FlexFit.tight,
- flex: 0,
- child: Align(
- alignment: Alignment
- .centerRight,
- child: Container(
- decoration:
- ShapeDecoration(
- color: Colors.white,
- shape: RoundedRectangleBorder(
- borderRadius:
- BorderRadius
- .circular(
- 12.5)),
- ),
- child: Padding(
- padding:
- EdgeInsets.all(
- hp(1)),
- child: Text(
- m['message']
- .toString(),
- style: TextStyle(
- fontSize:
- wp(3.5),
- color: Colors
- .black,
- fontWeight:
- FontWeight
- .normal),
- ),
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement