fix: ui names

This commit is contained in:
NaiJi 2022-12-27 09:47:58 +04:00
parent 66ef4e99d8
commit b6b0cdaf65
5 changed files with 9 additions and 21 deletions

View File

@ -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),
),
],
),

View File

View File

@ -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('Курьеры'),
),
),
),

View File

@ -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,

View File

@ -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('Заказы'),
),
),
),