diff --git a/lib/components/carttile.dart b/lib/components/carttile.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/pages/cart.dart b/lib/pages/cart.dart index 20712d8..0271599 100644 --- a/lib/pages/cart.dart +++ b/lib/pages/cart.dart @@ -14,9 +14,30 @@ class CartPage extends StatelessWidget { //screen return Scaffold( appBar: AppBar( - title: Text('data'), + title: Text('Cart'), + backgroundColor: Colors.transparent, + foregroundColor: Theme.of(context).colorScheme.primary, + centerTitle: true, + ), + body: Column( + children: [ + Expanded( + child: ListView.builder( + itemCount: userCart.length, + itemBuilder: (context, index) { + //get individual cart item + final cartitem = userCart[index]; + + //return cart title + return ListTile( + title: Text(userCart[index].food.name), + ); + } + ), + ), + ], ), ); }); } -} \ No newline at end of file +}