fix patient card

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

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

@ -188,6 +188,21 @@ class Helpers {
static clearSharedPref() async {
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) {
locator<NavigationService>().pushAndRemoveUntil(

@ -56,19 +56,7 @@ class PatientCard extends StatelessWidget {
width: SizeConfig.screenWidth * 0.9,
margin: EdgeInsets.all(6),
padding: EdgeInsets.only(left: projectViewModel.isArabic?5:0, right: projectViewModel.isArabic?0:5, bottom: 0, top: 0),
decoration: BoxDecoration(
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
),
],
),
decoration:Helpers.getCardBoxDecoration(),
child: CardWithBgWidget(
padding: 0,
marginLeft: (!isMyPatient && isInpatient) ? 0 : 10,

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

Loading…
Cancel
Save