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( Container(
height: 60, height: 100,
child: ListView.builder( child: ListView.builder(
itemBuilder: (ctx, i) => itemBuilder: (ctx, i) =>
ManufacturerItem(model.manufacturerList[i]), ManufacturerItem(model.manufacturerList[i]),

@ -24,31 +24,31 @@ class ManufacturerItem extends StatelessWidget {
), ),
); );
}, },
child: Card( child: Container(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
margin: EdgeInsets.symmetric( margin: EdgeInsets.symmetric(
horizontal: 8, horizontal: 12,
vertical: 4, vertical: 4,
), ),
child: Container( decoration: BoxDecoration(
decoration: BoxDecoration( borderRadius:BorderRadius.circular(12) ,
border: Border( border: Border(
right: BorderSide(color: Colors.grey.shade300, width: 1), right: BorderSide(color: Colors.grey.shade300, width: 1),
bottom: BorderSide(color: Colors.grey.shade300, width: 1), bottom: BorderSide(color: Colors.grey.shade300, width: 1),
left: BorderSide(color: Colors.grey.shade300, width: 1), left: BorderSide(color: Colors.grey.shade300, width: 1),
top: 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: EdgeInsets.symmetric(horizontal: 8),
child: Image.network(
item.image.src,
fit: BoxFit.cover,
),
),
), ),
child: item.image == null
? 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(
item.image.src,
fit: BoxFit.cover,
),
),
), ),
); );
} }

Loading…
Cancel
Save