fix patient card

merge-requests/915/head
Elham Rababh 4 years ago
parent 4760d4ae50
commit 52bd1511e8

@ -53,6 +53,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
return AppScaffold( return AppScaffold(
baseViewModel: widget.patientSearchViewModel, baseViewModel: widget.patientSearchViewModel,
isShowAppBar: false, isShowAppBar: false,
backgroundColor: Color(0xFFF8F8F8),
body: Column( body: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [

@ -188,6 +188,21 @@ class Helpers {
static clearSharedPref() async { static clearSharedPref() async {
await sharedPref.clear(); await sharedPref.clear();
} }
static getCardBoxDecoration(){
return BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.white,
shape: BoxShape.rectangle,
boxShadow: [
BoxShadow(
color: Color(0xFF0000000D),
spreadRadius: 10,
blurRadius: 27,
offset: Offset(0, -3), // changes position of shadow
),
],
);
}
navigateToUpdatePage(String message, String androidLink, iosLink) { navigateToUpdatePage(String message, String androidLink, iosLink) {
locator<NavigationService>().pushAndRemoveUntil( locator<NavigationService>().pushAndRemoveUntil(

@ -56,19 +56,7 @@ class PatientCard extends StatelessWidget {
width: SizeConfig.screenWidth * 0.9, width: SizeConfig.screenWidth * 0.9,
margin: EdgeInsets.all(6), margin: EdgeInsets.all(6),
padding: EdgeInsets.only(left: projectViewModel.isArabic?5:0, right: projectViewModel.isArabic?0:5, bottom: 0, top: 0), padding: EdgeInsets.only(left: projectViewModel.isArabic?5:0, right: projectViewModel.isArabic?0:5, bottom: 0, top: 0),
decoration: BoxDecoration( decoration:Helpers.getCardBoxDecoration(),
borderRadius: BorderRadius.circular(10),
color: Colors.white,
shape: BoxShape.rectangle,
boxShadow: [
BoxShadow(
color: Color(0x0000000D),
spreadRadius: 10,
blurRadius: 2.7,
offset: Offset(0, -3 ), // changes position of shadow
),
],
),
child: CardWithBgWidget( child: CardWithBgWidget(
padding: 0, padding: 0,
marginLeft: (!isMyPatient && isInpatient) ? 0 : 10, marginLeft: (!isMyPatient && isInpatient) ? 0 : 10,

@ -47,7 +47,7 @@ class CardWithBgWidget extends StatelessWidget {
bottomRight: Radius.circular(10), bottomRight: Radius.circular(10),
), ),
), ),
width: 10, width: 6,
), ),
bottom: 1, bottom: 1,
top: 1, top: 1,
@ -63,7 +63,7 @@ class CardWithBgWidget extends StatelessWidget {
bottomLeft: Radius.circular(10), bottomLeft: Radius.circular(10),
), ),
), ),
width: 7, width: 5,
), ),
bottom: 1, bottom: 1,
top: 1, top: 1,

Loading…
Cancel
Save