| | |
| | | //用户(带头像)位置marker |
| | | class PersonLocationMarker extends StatelessWidget { |
| | | final Image portrait; |
| | | final Color borderColor; |
| | | |
| | | PersonLocationMarker(this.portrait); |
| | | PersonLocationMarker(this.portrait,{this.borderColor=ColorConstant.theme}); |
| | | |
| | | @override |
| | | Widget build(BuildContext context) { |
| | |
| | | height: 42 - 3 * 2, |
| | | padding: EdgeInsets.all(2), |
| | | decoration: BoxDecoration( |
| | | color: ColorConstant.theme, |
| | | color: borderColor, |
| | | borderRadius: BorderRadius.circular(40)), |
| | | child: Image.asset( |
| | | "assets/images/mine/icon_mine_default_portrait.png", |