Item View

This commit is contained in:
2021-03-20 13:36:49 +02:00
parent 7396a9a0a4
commit 61180a7fe4
15 changed files with 665 additions and 21 deletions
+35
View File
@@ -0,0 +1,35 @@
import 'package:flutter/material.dart';
class ProfilePicture extends StatelessWidget {
const ProfilePicture({Key key, this.imageUrl}) : super(key: key);
final String imageUrl;
@override
Widget build(BuildContext context) {
return Container(
height: 114,
width: 114,
decoration: BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(
image: NetworkImage(imageUrl),
fit: BoxFit.cover,
),
border: Border.all(
color: Colors.white,
width: 4,
),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 2,
blurRadius: 2,
offset: Offset(0, 1), // changes position of shadow
)
]
),
);
}
}