Fakultas Ilmu Komputer UI

Commit 8b687d85 authored by Patricia Anugrah Setiani's avatar Patricia Anugrah Setiani
Browse files

[CHORES] add border to default profile picture in drawer

parent 0bc85ec1
Pipeline #82021 passed with stages
in 22 minutes and 33 seconds
......@@ -59,6 +59,10 @@ class BisaGoDrawer extends StatelessWidget {
child: Row(
children: <Widget>[
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30),
border: Border.all(color: Colors.white)
),
child: ProfilePicture(DetailUserModel.fromJson(jsonDecode(snapshot.data)),
radius: 30, fontSize: 25, previewAble: true),
),
......
......@@ -137,7 +137,7 @@ class _EditProfileState extends State<EditProfile> {
CircleAvatar(
key: Key('Avatar ${detailUserModel.name.split(' ')[0]}'),
radius: 50,
backgroundColor: Colors.white,
backgroundColor: greenPrimary,
child: (_image != null)
? ClipOval(
child: AspectRatio(
......@@ -149,7 +149,7 @@ class _EditProfileState extends State<EditProfile> {
style: const TextStyle(
fontSize: 45,
fontWeight: FontWeight.w900,
color: greenPrimary,
color: Colors.white,
fontFamily: 'Comfortaa',
))
: ClipOval(
......
......@@ -27,8 +27,8 @@ class ProfilePicture extends StatelessWidget {
this.previewAble = false,
this.radius = 20,
this.fontSize = 14,
this.color = greenPrimary,
this.backgroundColor = Colors.white,
this.color = Colors.white,
this.backgroundColor = greenPrimary,
this.fontFamily = 'Comfortaa',
this.fontWeight = FontWeight.w900})
: super(key: key);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment