From b6b0cdaf65b264b8a3cafaf50792b06dac6fa1e4 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Tue, 27 Dec 2022 09:47:58 +0400 Subject: [PATCH] fix: ui names --- lib/ui/courier.dart | 14 +++++++------- lib/ui/courierdetails.dart | 0 lib/ui/courierspage.dart | 6 +----- lib/ui/itemspage.dart | 4 ---- lib/ui/orderspage.dart | 6 +----- 5 files changed, 9 insertions(+), 21 deletions(-) create mode 100644 lib/ui/courierdetails.dart diff --git a/lib/ui/courier.dart b/lib/ui/courier.dart index 480cd72..14c4ba9 100644 --- a/lib/ui/courier.dart +++ b/lib/ui/courier.dart @@ -9,12 +9,12 @@ class _Courier extends StatelessWidget { @override Widget build(final BuildContext context) => InkWell( - onTap: () { - // Navigator.of(context).push( - // MaterialPageRoute( - // builder: (final BuildContext context) => CourierDetails(courier), - // ); - }, + //onTap: () { + //Navigator.of(context).push( + // MaterialPageRoute( + //builder: (final BuildContext context) => CourierDetails(courier), + //); + // }, child: Container( padding: const EdgeInsets.symmetric(horizontal: 15), height: 48, @@ -35,7 +35,7 @@ class _Courier extends StatelessWidget { ), const SizedBox(width: 20), Flexible( - child: Text('${courier.name} ${courier.surname}'), + child: Text(courier.title), ), ], ), diff --git a/lib/ui/courierdetails.dart b/lib/ui/courierdetails.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/ui/courierspage.dart b/lib/ui/courierspage.dart index 5c354c1..658fac7 100644 --- a/lib/ui/courierspage.dart +++ b/lib/ui/courierspage.dart @@ -75,11 +75,7 @@ class CouriersPage extends StatelessWidget { child: AppBar( title: const Padding( padding: EdgeInsets.only(top: 4.0), - child: Text('Товары'), - ), - leading: IconButton( - icon: const Icon(Icons.arrow_back), - onPressed: () => Navigator.of(context).pop(), + child: Text('Курьеры'), ), ), ), diff --git a/lib/ui/itemspage.dart b/lib/ui/itemspage.dart index 5f47d99..43c35cd 100644 --- a/lib/ui/itemspage.dart +++ b/lib/ui/itemspage.dart @@ -76,10 +76,6 @@ class ItemsPage extends StatelessWidget { padding: EdgeInsets.only(top: 4.0), child: Text('Товары'), ), - leading: IconButton( - icon: const Icon(Icons.arrow_back), - onPressed: () => Navigator.of(context).pop(), - ), ), ), body: child, diff --git a/lib/ui/orderspage.dart b/lib/ui/orderspage.dart index 6453ec0..887cccd 100644 --- a/lib/ui/orderspage.dart +++ b/lib/ui/orderspage.dart @@ -75,11 +75,7 @@ class OrdersPage extends StatelessWidget { child: AppBar( title: const Padding( padding: EdgeInsets.only(top: 4.0), - child: Text('Товары'), - ), - leading: IconButton( - icon: const Icon(Icons.arrow_back), - onPressed: () => Navigator.of(context).pop(), + child: Text('Заказы'), ), ), ),