fix home sreen items

merge-requests/1/merge
Elham Rababah 6 years ago
parent 3b87f35405
commit 7c3efab7a7

@ -68,16 +68,6 @@ class HomeScreen extends StatelessWidget {
title: 'Doctor Reply', title: 'Doctor Reply',
image: 'assets/images/user_id_icon.png', image: 'assets/images/user_id_icon.png',
), ),
Category(
id: 'c2',
title: 'Blood Bank',
image: 'assets/images/user_id_icon.png',
),
Category(
id: 'c1',
title: 'Doctor Reply',
image: 'assets/images/user_id_icon.png',
),
Category( Category(
id: 'c2', id: 'c2',
title: 'Blood Bank', title: 'Blood Bank',

@ -12,21 +12,29 @@ class HomeItem extends StatelessWidget {
onTap: () => selectItem(context, id), onTap: () => selectItem(context, id),
splashColor: Colors.red, splashColor: Colors.red,
child: Container( child: Container(
padding: EdgeInsets.all(5),
decoration: BoxDecoration(
border: Border.all(
width: 1, // <--- border width here
),
),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
child: CircleAvatar( // decoration: BoxDecoration(color:Colors.red),
width: 10000,
height: 60,
child: CircleAvatar(
backgroundColor: Colors.white, backgroundColor: Colors.white,
child: Container( child: Container(
child: Image.asset( child: Image.asset(
image, image,
// width 50,
scale: 0.6,
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
)), )),
Text( Text(
title, title,

Loading…
Cancel
Save