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 @override
Widget build(final BuildContext context) => InkWell( Widget build(final BuildContext context) => InkWell(
onTap: () { //onTap: () {
// Navigator.of(context).push( //Navigator.of(context).push(
// MaterialPageRoute( // MaterialPageRoute(
// builder: (final BuildContext context) => CourierDetails(courier), //builder: (final BuildContext context) => CourierDetails(courier),
// ); //);
}, // },
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 15), padding: const EdgeInsets.symmetric(horizontal: 15),
height: 48, height: 48,
@ -35,7 +35,7 @@ class _Courier extends StatelessWidget {
), ),
const SizedBox(width: 20), const SizedBox(width: 20),
Flexible( 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( child: AppBar(
title: const Padding( title: const Padding(
padding: EdgeInsets.only(top: 4.0), padding: EdgeInsets.only(top: 4.0),
child: Text('Товары'), child: Text('Курьеры'),
),
leading: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.of(context).pop(),
), ),
), ),
), ),

View File

@ -76,10 +76,6 @@ class ItemsPage extends StatelessWidget {
padding: EdgeInsets.only(top: 4.0), padding: EdgeInsets.only(top: 4.0),
child: Text('Товары'), child: Text('Товары'),
), ),
leading: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.of(context).pop(),
),
), ),
), ),
body: child, body: child,

View File

@ -75,11 +75,7 @@ class OrdersPage extends StatelessWidget {
child: AppBar( child: AppBar(
title: const Padding( title: const Padding(
padding: EdgeInsets.only(top: 4.0), padding: EdgeInsets.only(top: 4.0),
child: Text('Товары'), child: Text('Заказы'),
),
leading: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.of(context).pop(),
), ),
), ),
), ),