Skip to content

Commit

Permalink
TW-1437: Update bottom navigator bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Feb 1, 2024
1 parent 5b3edc3 commit ebd4d7d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/utils/responsive/responsive_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class ResponsiveUtils {
static const double bodyRadioWidth = 472;

static const double defaultSizeBodyLayoutDesktop = 280;
static const double heightBottomNavigation = 90;
static const double heightBottomNavigation = 72;
static const double heightBottomNavigationBar = 56;

static const double bodyWithRightColumnRatio = 0.7;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:fluffychat/utils/responsive/responsive_utils.dart';
import 'package:fluffychat/widgets/layouts/adaptive_layout/adaptive_scaffold_primary_navigation.dart';
import 'package:fluffychat/widgets/layouts/adaptive_layout/adaptive_scaffold_view_style.dart';
import 'package:fluffychat/widgets/layouts/adaptive_layout/app_adaptive_scaffold_body.dart';
import 'package:fluffychat/widgets/layouts/adaptive_layout/app_adaptive_scaffold_body_view_style.dart';
import 'package:fluffychat/widgets/layouts/enum/adaptive_destinations_enum.dart';
import 'package:flutter/material.dart';
import 'package:flutter_adaptive_scaffold/flutter_adaptive_scaffold.dart';
Expand Down Expand Up @@ -231,12 +232,16 @@ class _ColumnPageView extends StatelessWidget {
builder: (_) {
return Container(
height: ResponsiveUtils.heightBottomNavigation,
color: Theme.of(context).colorScheme.surface,
color: LinagoraSysColors.material().surface,
padding: AppAdaptiveScaffoldBodyViewStyle.paddingBottomNavigation,
child: ListView(
padding: EdgeInsets.zero,
physics: const NeverScrollableScrollPhysics(),
children: [
NavigationBar(
height: ResponsiveUtils.heightBottomNavigation,
backgroundColor: LinagoraSysColors.material().surface,
elevation: AppAdaptiveScaffoldBodyViewStyle.elevation,
height: ResponsiveUtils.heightBottomNavigationBar,
selectedIndex: _getActiveBottomNavigationBarIndex(),
destinations: getNavigationDestinations(context),
onDestinationSelected: onDestinationSelected,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'package:flutter/cupertino.dart';

class AppAdaptiveScaffoldBodyViewStyle {
static const double elevation = 0.0;

static const EdgeInsets paddingBottomNavigation = EdgeInsets.only(
top: 4,
);
}

0 comments on commit ebd4d7d

Please sign in to comment.