Skip to content

Commit

Permalink
Optimized code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsadMaqsood committed Jun 19, 2023
1 parent 64c4a5e commit 0b98cd7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/src/anim_nav/animated_nav_tiles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,9 @@ class AnimatedNavigationTiles extends StatelessWidget {
Color get itemColor =>
items.backgroundColor ??
(selected ? items.selectedColor : items.unSelectedColor);

Color get itemColorOnSelected => items.backgroundColor ?? items.selectedColor;

List<Widget> _defaultItems() {
// Color itemColor = items.backgroundColor ??
// (selected ? items.selectedColor : items.unSelectedColor);

var label = LabelWidget(
iconStyle: iconStyle,
animation: animation!,
Expand All @@ -138,11 +134,6 @@ class AnimatedNavigationTiles extends StatelessWidget {
}

List<Widget> _liquidItems() {
// Color itemColor = items.backgroundColor ??
// (selected ? items.selectedColor : items.unSelectedColor);

// Color itemColorOnSelected = items.backgroundColor ?? items.selectedColor;

var label = LabelWidget(
iconStyle: iconStyle,
animation: animation!,
Expand Down Expand Up @@ -198,10 +189,6 @@ class AnimatedNavigationTiles extends StatelessWidget {
}

List<Widget> _childItems() {
// Color itemColorOnSelected = items.backgroundColor ?? items.selectedColor;
// Color itemColor = items.backgroundColor ??
// (selected ? items.selectedColor : items.unSelectedColor);

var label = LabelWidget(
iconStyle: iconStyle,
animation: animation!,
Expand Down Expand Up @@ -249,9 +236,6 @@ class AnimatedNavigationTiles extends StatelessWidget {
}

List<Widget> _dropItems() {
// Color itemColor = items.backgroundColor ??
// (selected ? items.selectedColor : items.unSelectedColor);

return [
AnimatedCrossFade(
firstChild: Container(
Expand Down

0 comments on commit 0b98cd7

Please sign in to comment.