From d3c2efc45d249f2f1637c9dda518b0f67c3479eb Mon Sep 17 00:00:00 2001 From: Amjad Amireh Date: Sun, 31 May 2020 16:32:11 +0300 Subject: [PATCH] svg avatar Icon and library --- assets/images/user_female.svg | 13 +++++++++++++ assets/images/user_male.svg | 11 +++++++++++ lib/screens/patients/patients_screen.dart | 18 ++++++++++++++---- 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 assets/images/user_female.svg create mode 100644 assets/images/user_male.svg diff --git a/assets/images/user_female.svg b/assets/images/user_female.svg new file mode 100644 index 00000000..4c9d8cd2 --- /dev/null +++ b/assets/images/user_female.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/assets/images/user_male.svg b/assets/images/user_male.svg new file mode 100644 index 00000000..bdf4987f --- /dev/null +++ b/assets/images/user_male.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/lib/screens/patients/patients_screen.dart b/lib/screens/patients/patients_screen.dart index d9fe97c6..87bc84a2 100644 --- a/lib/screens/patients/patients_screen.dart +++ b/lib/screens/patients/patients_screen.dart @@ -47,8 +47,8 @@ class _PatientsScreenState extends State { List responseModelList; List responseModelList2; final String url = "assets/images/"; - final String avatarMale = 'profile.svg';//'user.svg'; - final String avatarFemale = 'femaleIcon.svg'; + final String avatarMale = "user_male.svg"; //'working_male.svg';//'user.svg'; + final String avatarFemale = 'user_female.svg'; final String assetName = 'assets/image.svg'; // List _locations = ['Today', 'Old Date', 'YESTERDAY']; @@ -382,13 +382,23 @@ class _PatientsScreenState extends State { "Male" ? [ SvgPicture.asset( - url + avatarMale, + url + + avatarMale, + height: + 100.0, + width: + 100.0, semanticsLabel: 'Male Logo') ] : [ SvgPicture.asset( - url + avatarFemale, + url + + avatarFemale, + height: + 100.0, + width: + 100.0, semanticsLabel: 'Female Logo') ],