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: () { // Логика нажатия на центральную кнопку