getPhoto method
dynamic
getPhoto(
- String url
)
Implementation
getPhoto(String url) {
return Container(
alignment: Alignment.center,
width: 60,
height: 60,
child: Container(
width: 60,
height: 60,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: LinearGradient(colors: [
this.theme.colorScheme.primary,
this.theme.colorScheme.secondary,
], begin: Alignment.topRight, end: Alignment.bottomLeft),
),
child: Container(
alignment: Alignment.center,
width: 55,
height: 55,
decoration: BoxDecoration(
image: DecorationImage(fit: BoxFit.cover, image: NetworkImage(url)),
borderRadius: BorderRadius.all(Radius.circular((50) / 2)),
),
),
),
);
}