improve: change main bottomNavigationBar widget

This commit is contained in:
Erfan Rahmati
2022-09-02 13:31:47 +04:30
parent 29464fef23
commit 958d387fb5
4 changed files with 17 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import 'package:movielab/constants/types.dart';
setSystemUIOverlayStyle(
{required SystemUIOverlayStyle systemUIOverlayStyle,
Color color = kSecondaryColor}) {
Color color = kBackgroundColor}) {
if (systemUIOverlayStyle == SystemUIOverlayStyle.DARK) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,

View File

@@ -22,10 +22,17 @@ class MainPage extends StatelessWidget {
selectedIndex: _.selectedIndex,
animationCurve: Curves.linear,
showElevation: true,
backgroundColor: kSecondaryColor,
backgroundColor: kBackgroundColor,
animationDuration: const Duration(milliseconds: 250),
iconSize: 27.5,
height: 70,
shadows: [
BoxShadow(
color: Colors.black.withOpacity(0.75),
blurRadius: 7.5,
offset: const Offset(0, 0),
),
],
onItemSelected: (index) => _.changeIndex(index),
items: [
FlashyTabBarItem(

View File

@@ -15,6 +15,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.0"
animated_theme_switcher:
dependency: "direct main"
description:
name: animated_theme_switcher
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.6"
ansicolor:
dependency: "direct dev"
description:

View File

@@ -46,6 +46,7 @@ dependencies:
permission_handler: ^10.0.0
file_picker: ^5.0.1
flashy_tab_bar2: ^0.0.4
animated_theme_switcher: ^2.0.6