From 7c3efab7a77e35f1eb19dacba078a4700364d7cc Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 15 Mar 2020 10:39:28 +0200 Subject: [PATCH] fix home sreen items --- lib/screens/home_screen.dart | 10 ---------- lib/widgets/home/home_item.dart | 16 ++++++++++++---- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index 2739e40b..f9e471fd 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -68,16 +68,6 @@ class HomeScreen extends StatelessWidget { title: 'Doctor Reply', 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( id: 'c2', title: 'Blood Bank', diff --git a/lib/widgets/home/home_item.dart b/lib/widgets/home/home_item.dart index 0fad6a16..a4aa5f5d 100644 --- a/lib/widgets/home/home_item.dart +++ b/lib/widgets/home/home_item.dart @@ -12,21 +12,29 @@ class HomeItem extends StatelessWidget { onTap: () => selectItem(context, id), splashColor: Colors.red, child: Container( - + padding: EdgeInsets.all(5), + decoration: BoxDecoration( + border: Border.all( + width: 1, // <--- border width here + ), + ), child: Column( children: [ Container( - child: CircleAvatar( + // decoration: BoxDecoration(color:Colors.red), + width: 10000, + height: 60, + child: CircleAvatar( backgroundColor: Colors.white, child: Container( child: Image.asset( image, + // width 50, + scale: 0.6, color: Theme.of(context).primaryColor, fit: BoxFit.cover, ), - ), - )), Text( title,