fix: ui names
This commit is contained in:
parent
66ef4e99d8
commit
b6b0cdaf65
|
@ -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),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
0
lib/ui/courierdetails.dart
Normal file
0
lib/ui/courierdetails.dart
Normal 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(),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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(),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue