fix brand design

merge-update-with-lab-changes
Elham Rababh 4 years ago
parent a6a7ed4e1b
commit db277a62f5

@ -590,7 +590,7 @@ class _PharmacyPageState extends State<PharmacyPage> {
),
),
Container(
height: 60,
height: 100,
child: ListView.builder(
itemBuilder: (ctx, i) =>
ManufacturerItem(model.manufacturerList[i]),

@ -24,23 +24,24 @@ class ManufacturerItem extends StatelessWidget {
),
);
},
child: Card(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
child: Container(
margin: EdgeInsets.symmetric(
horizontal: 8,
horizontal: 12,
vertical: 4,
),
child: Container(
decoration: BoxDecoration(
borderRadius:BorderRadius.circular(12) ,
border: Border(
right: BorderSide(color: Colors.grey.shade300, width: 1),
bottom: BorderSide(color: Colors.grey.shade300, width: 1),
left: BorderSide(color: Colors.grey.shade300, width: 1),
top: BorderSide(color: Colors.grey.shade300, width: 1)),
),
///TODO Elham* Improve design and check if they show the image and name or just name
child: item.image == null
? Container(child: AppText(item.name))
? Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 10),
child: AppText(item.name, fontWeight: FontWeight.w500,fontSize: 14,),
)
: Padding(
padding: EdgeInsets.symmetric(horizontal: 8),
child: Image.network(
@ -49,7 +50,6 @@ class ManufacturerItem extends StatelessWidget {
),
),
),
),
);
}
}

Loading…
Cancel
Save