From 0842c479c72f1ca4a0e56312b33bdd604f7bcb2a Mon Sep 17 00:00:00 2001 From: Vitalij Date: Tue, 17 Jun 2025 21:05:44 +0300 Subject: [PATCH] =?UTF-8?q?fix(home):=20=D0=9E=D0=BF=D1=82=D0=B8=D0=BC?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D1=8B=20=D0=BD=D0=B0=D0=B2=D0=B8=D0=B3=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=BE=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B1=D0=B0=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/screens/home/home_screen.dart | 45 +++++++++++++------------------ 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/lib/screens/home/home_screen.dart b/lib/screens/home/home_screen.dart index 56d2f56..13744de 100644 --- a/lib/screens/home/home_screen.dart +++ b/lib/screens/home/home_screen.dart @@ -21,31 +21,24 @@ class HomeScreen extends StatelessWidget { Widget build(BuildContext context) { logger.logBuild('build home screen'); - return SafeArea( - top: false, - child: AutoTabsScaffold( - routes: [ - SettingsRoute(), - StatistickRoute(), - CreateRoute(), - CollectionRoute(), - ], - bottomNavigationBuilder: (_, TabsRouter tabsRouter) { - return ColoredBox( - color: AppColors.bg, - child: SizedBox( - height: 73.h, - child: Stack( - alignment: Alignment.bottomCenter, - children: [ - _buildBackgroundBar(tabsRouter), - _buildCentralButton(), - ], - ), - ), - ); - }, - ), + return Stack( + children: [ + SafeArea( + top: false, + child: AutoTabsScaffold( + routes: [ + SettingsRoute(), + StatistickRoute(), + CreateRoute(), + CollectionRoute(), + ], + bottomNavigationBuilder: (_, TabsRouter tabsRouter) { + return _buildBackgroundBar(tabsRouter); + }, + ), + ), + _buildCentralButton(), + ], ); } @@ -89,7 +82,7 @@ class HomeScreen extends StatelessWidget { /// Построение центральной кнопки Widget _buildCentralButton() { return Align( - alignment: Alignment.topCenter, + alignment: Alignment(0, 0.91), child: GestureDetector( onTap: () { // Логика нажатия на центральную кнопку