forked from eatvio/eatvio_app
Merge pull request 'recipe_refactor' (#122) from recipe_refactor into main
Reviewed-on: maxxkim/eatvio_app#122
This commit is contained in:
@@ -85,12 +85,13 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
BottomNavigationBarItem(
|
||||
label: 'Лента',
|
||||
icon: SvgPicture.asset(
|
||||
colorFilter: ColorFilter.mode(Colors.grey, BlendMode.srcIn),
|
||||
width: 24,
|
||||
height: 24,
|
||||
ImageConstant.imgFeed,
|
||||
ImageConstant.icnFeed,
|
||||
),
|
||||
activeIcon: SvgPicture.asset(
|
||||
ImageConstant.imgFeed,
|
||||
ImageConstant.icnFeed,
|
||||
width: 24,
|
||||
height: 24,
|
||||
colorFilter: ColorFilter.mode(
|
||||
@@ -102,12 +103,13 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
BottomNavigationBarItem(
|
||||
label: "diary".tr,
|
||||
icon: SvgPicture.asset(
|
||||
ImageConstant.imgDiary,
|
||||
colorFilter: ColorFilter.mode(Colors.grey, BlendMode.srcIn),
|
||||
ImageConstant.icnDiary,
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
activeIcon: SvgPicture.asset(
|
||||
ImageConstant.imgDiary,
|
||||
ImageConstant.icnDiary,
|
||||
width: 24,
|
||||
height: 24,
|
||||
colorFilter: ColorFilter.mode(
|
||||
@@ -129,7 +131,7 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
),
|
||||
),
|
||||
child: SvgPicture.asset(
|
||||
ImageConstant.imgChat,
|
||||
ImageConstant.icnChat,
|
||||
width: 24,
|
||||
height: 24,
|
||||
colorFilter: currentBottomNavBarIndex == 3
|
||||
@@ -137,7 +139,7 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
appTheme.blueA400,
|
||||
BlendMode.srcIn,
|
||||
)
|
||||
: null,
|
||||
: ColorFilter.mode(Colors.grey, BlendMode.srcIn),
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -156,13 +158,13 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
|
||||
),
|
||||
),
|
||||
child: SvgPicture.asset(
|
||||
ImageConstant.imgBell,
|
||||
ImageConstant.icnBell,
|
||||
colorFilter: currentBottomNavBarIndex == 4
|
||||
? ColorFilter.mode(
|
||||
appTheme.blueA400,
|
||||
BlendMode.srcIn,
|
||||
)
|
||||
: null,
|
||||
: ColorFilter.mode(Colors.grey, BlendMode.srcIn),
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
|
||||
@@ -14,42 +14,42 @@ class CustomNavigationMenu extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgSettings,
|
||||
icon: ImageConstant.icnProfileSettings,
|
||||
text: 'Настройки профиля',
|
||||
onTap: () => GoRouter.of(context).push('/my-settings-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgRecipes,
|
||||
icon: ImageConstant.icnRecipes,
|
||||
text: 'Мои рецепты',
|
||||
onTap: () => GoRouter.of(context).push('/recipe-select-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgDiets,
|
||||
icon: ImageConstant.icnVeggies,
|
||||
text: 'Мои диеты',
|
||||
onTap: () => GoRouter.of(context).push('/diet-select-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgPlans,
|
||||
icon: ImageConstant.icnPlans,
|
||||
text: 'Мои планы',
|
||||
onTap: () => GoRouter.of(context).push('/plan-select-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgRecipes,
|
||||
icon: ImageConstant.icnPlans,
|
||||
text: 'Календарь',
|
||||
onTap: () => GoRouter.of(context).push('/calendar-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgFinance,
|
||||
icon: ImageConstant.icnGlossary,
|
||||
text: 'Глоссарий',
|
||||
onTap: () => GoRouter.of(context).push('/glossary-screen'),
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgSupport,
|
||||
icon: ImageConstant.icnSupport,
|
||||
text: 'Поддержка',
|
||||
onTap: () {},
|
||||
),
|
||||
MenuItem(
|
||||
icon: ImageConstant.imgExit,
|
||||
icon: ImageConstant.icnExit,
|
||||
text: 'Выход',
|
||||
onTap: _onTapLogout(context),
|
||||
),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:eatvio_app/core/app_export.dart';
|
||||
import 'package:eatvio_app/widgets/custom_image_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MenuItem extends StatelessWidget {
|
||||
@@ -23,7 +22,12 @@ class MenuItem extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.center, // Выравнивание по центру вертикально
|
||||
children: <Widget>[
|
||||
CustomImageView(imagePath: icon),
|
||||
CustomImageView(
|
||||
color: appTheme.blueA400,
|
||||
imagePath: icon,
|
||||
height: 24.0,
|
||||
width: 24.0,
|
||||
),
|
||||
SizedBox(
|
||||
width: 8.0,
|
||||
), // Добавляем небольшой отступ между иконкой и текстом
|
||||
|
||||
Reference in New Issue
Block a user