From f618e7e0e54d161cf551d7478cbc11b6c38396b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Wed, 18 Sep 2024 13:37:08 +0400 Subject: [PATCH] fix labs --- lib/main.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 4de09d2..c31177b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -42,6 +42,7 @@ class _MyHomePageState extends State { padding: const EdgeInsets.all(20), child: ListView.separated( itemBuilder: (context, index) => GestureDetector( + child: CardWidget(name: "Pizza $index", price: 150.0), onTap: () { Navigator.push( context, @@ -53,10 +54,9 @@ class _MyHomePageState extends State { ), ); }, - child: CardWidget(name: "Pizza $index", price: 150.0), ), separatorBuilder: (context, index) => const SizedBox(height: 20), - itemCount: 5, + itemCount: 10, ))); } } @@ -91,7 +91,7 @@ class _CardWidgetState extends State { return Container( padding: const EdgeInsets.all(4), decoration: BoxDecoration( - border: Border.all(color: Colors.black12, width: 2), + border: Border.all(color: Colors.deepOrangeAccent, width: 2), borderRadius: BorderRadius.circular(20), ), child: Row(