diff --git a/lib/screens/home.dart b/lib/screens/home.dart index d87d44d..6f42e50 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -85,7 +85,7 @@ class _MyHomePageState extends State { return ListTile( onTap: goToCart, leading: Icon( - Icons.card_travel, + Icons.shopping_cart, color: Colors.white, ), title: Text('Cart', style: TextStyle(color: Colors.white)), diff --git a/lib/screens/page2.dart b/lib/screens/page2.dart index db11613..53fe5cb 100644 --- a/lib/screens/page2.dart +++ b/lib/screens/page2.dart @@ -29,16 +29,20 @@ class _Page2State extends State { style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold), ), Expanded( - child: ListView.builder( - itemCount: value.cart_list.length, - itemBuilder: (context, index) { - Shoe shoe = value.cart_list[index]; - return ShoeTile( - shoe: shoe, - onPressed: () => removeShoe(shoe), - ); - }, - ), + child: value.cart_list.isEmpty + ? Center( + child: Text("Empyt Cart!"), + ) + : ListView.builder( + itemCount: value.cart_list.length, + itemBuilder: (context, index) { + Shoe shoe = value.cart_list[index]; + return ShoeTile( + shoe: shoe, + onPressed: () => removeShoe(shoe), + ); + }, + ), ) ], )), diff --git a/lib/utils/custom_nav_bar.dart b/lib/utils/custom_nav_bar.dart index 1faf941..1f94a6f 100644 --- a/lib/utils/custom_nav_bar.dart +++ b/lib/utils/custom_nav_bar.dart @@ -25,7 +25,7 @@ class CustomNavBar extends StatelessWidget { text: 'Shop', ), GButton( - icon: Icons.card_travel, + icon: Icons.shopping_cart, text: 'Cart', ), ],