Feature: Добавлена верстка экрана статистики #6

Merged
Dimkov966 merged 3 commits from feature/statistick into develop 2025-06-17 18:06:55 +00:00
Showing only changes of commit 0842c479c7 - Show all commits

View File

@@ -21,7 +21,9 @@ class HomeScreen extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
logger.logBuild('build home screen'); logger.logBuild('build home screen');
return SafeArea( return Stack(
children: [
SafeArea(
top: false, top: false,
child: AutoTabsScaffold( child: AutoTabsScaffold(
routes: <PageRouteInfo>[ routes: <PageRouteInfo>[
@@ -31,21 +33,12 @@ class HomeScreen extends StatelessWidget {
CollectionRoute(), CollectionRoute(),
], ],
bottomNavigationBuilder: (_, TabsRouter tabsRouter) { bottomNavigationBuilder: (_, TabsRouter tabsRouter) {
return ColoredBox( return _buildBackgroundBar(tabsRouter);
color: AppColors.bg,
child: SizedBox(
height: 73.h,
child: Stack(
alignment: Alignment.bottomCenter,
children: <Widget>[
_buildBackgroundBar(tabsRouter),
_buildCentralButton(),
],
),
),
);
}, },
), ),
),
_buildCentralButton(),
],
); );
} }
@@ -89,7 +82,7 @@ class HomeScreen extends StatelessWidget {
/// Построение центральной кнопки /// Построение центральной кнопки
Widget _buildCentralButton() { Widget _buildCentralButton() {
return Align( return Align(
alignment: Alignment.topCenter, alignment: Alignment(0, 0.91),
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
// Логика нажатия на центральную кнопку // Логика нажатия на центральную кнопку