fix
This commit is contained in:
@@ -63,59 +63,81 @@ class SideMenu extends StatelessWidget {
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
// Пункты меню
|
||||
Column(
|
||||
children: [
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/person_icon.png',
|
||||
title: 'Профиль',
|
||||
onTap: () => {
|
||||
context.go('/home/profile'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go('/home/profile');
|
||||
},
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/list_star_icon.png',
|
||||
title: 'История поездок',
|
||||
onTap: () => context.go("/home/order-history"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/order-history");
|
||||
},
|
||||
),
|
||||
const Divider(color: Colors.white30, height: 1),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/creditcard_icon.png',
|
||||
title: 'Способ оплаты',
|
||||
onTap: () => context.go("/home/payment-methods"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/payment-methods");
|
||||
},
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/promo_icon.png',
|
||||
title: 'Промокоды',
|
||||
onTap: () => context.go("/home/promo"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/promo");
|
||||
},
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/plans_icon.png',
|
||||
title: 'Абонементы',
|
||||
onTap: () => context.push("/home/subscriptions"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.push("/home/subscriptions");
|
||||
},
|
||||
),
|
||||
const Divider(color: Colors.white30, height: 1),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/magazine_icon.png',
|
||||
title: 'Правила пользования самокатом',
|
||||
onTap: () => context.go("/home/rules")
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/rules");
|
||||
}
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/headphones_icon.png',
|
||||
title: 'Техподдержка',
|
||||
onTap: () => {
|
||||
context.go('/home/support'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go('/home/support');
|
||||
},
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/doc_icon.png',
|
||||
title: 'Документы',
|
||||
onTap: () => context.go("/home/documents"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/documents");
|
||||
},
|
||||
),
|
||||
_MenuItem(
|
||||
icon: 'assets/icons/news_icon.png',
|
||||
title: 'Новости',
|
||||
onTap: () => context.go("/home/news"),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go("/home/news");
|
||||
},
|
||||
),
|
||||
const Divider(color: Colors.white30, height: 1),
|
||||
_MenuItem(
|
||||
|
||||
Reference in New Issue
Block a user