From 69649ff7f809b73e2ae4def1715d0f0eff531357 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Wed, 10 Feb 2021 17:07:09 +0300 Subject: [PATCH] added verified icon in homepage when patient is logged in --- lib/pages/ToDoList/ToDo.dart | 6 +++--- lib/pages/landing/home_page.dart | 23 ++++++++++++++++------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/lib/pages/ToDoList/ToDo.dart b/lib/pages/ToDoList/ToDo.dart index 622f88c8..e33a98d9 100644 --- a/lib/pages/ToDoList/ToDo.dart +++ b/lib/pages/ToDoList/ToDo.dart @@ -367,7 +367,7 @@ class _ToDoState extends State { height: 30.0, margin: projectViewModel.isArabic ? EdgeInsets.fromLTRB(160.0, 0.0, 30.0, 0.0) - : EdgeInsets.fromLTRB(30.0, 0.0, 160.0, 0.0), + : EdgeInsets.fromLTRB(20.0, 0.0, 160.0, 0.0), transform: Matrix4.translationValues(0.0, -8.0, 0.0), child: Row( mainAxisAlignment: MainAxisAlignment.start, @@ -392,7 +392,7 @@ class _ToDoState extends State { style: TextStyle( color: Colors.white, fontWeight: FontWeight.bold, - fontSize: 12.0)), + fontSize: 11.0)), ) : Container( child: Text( @@ -401,7 +401,7 @@ class _ToDoState extends State { style: TextStyle( color: Colors.white, fontWeight: FontWeight.bold, - fontSize: 12.0)), + fontSize: 11.0)), ) ], ), diff --git a/lib/pages/landing/home_page.dart b/lib/pages/landing/home_page.dart index 3a64fbd5..392fcb15 100644 --- a/lib/pages/landing/home_page.dart +++ b/lib/pages/landing/home_page.dart @@ -289,13 +289,22 @@ class _HomePageState extends State { SizedBox( height: 8, ), - Texts( - model.user.firstName + - " " + - model.user.lastName, - color: Colors.grey[100], - bold: true, - fontSize: 15, + Row( + children: [ + Texts( + model.user.firstName + + " " + + model.user.lastName, + color: Colors.grey[100], + bold: true, + fontSize: 15, + ), + Container( + margin: EdgeInsets.fromLTRB(8.0, 0.0, 8.0, 0.0), + child: SvgPicture.asset( + "assets/images/new-design/verification_check.svg"), + ), + ], ), Texts( '${model.user.patientID}',