fancy_bottom_navigation icon indicating copy to clipboard operation
fancy_bottom_navigation copied to clipboard

can i resize circular icon size?

Open klokoleva opened this issue 5 years ago • 2 comments

klokoleva avatar Sep 07 '19 18:09 klokoleva

I was looking to do the same, this component is nice, but wasn't adjustable enough. I was digging into the code to tweak it, but then I realized there's 74+ Forks of this, and a bunch of people wanted the same. I think @tunitowen needs to accept some pull requests and merge the best of features. In the meantime, I'm just pointing my dependency to someone's Fork of a Fork and trying to get it to look right... Also wanted backgroundColor on individual TabData's, iconSize, icon as Widget, moveSpeed, popup height so it rises less than half circle, and being able to set the circleOutlineWidth without having to figure out the arcHeight & arcWidth. That kind of stuff would be nice, and I'm thankful for the community at work..

Skquark avatar Oct 19 '19 09:10 Skquark

I ended up making my own Fork, combining all the pending PRs that were needed, then made my own customizable additions that I wanted in my build. Feel free to use it with this in your pubspec:

  fancy_bottom_navigation:
    git:
      url: https://github.com/skquark/fancy_bottom_navigation.git

It lets you personalize all the sizes, colors, gradient, animation duration, and use PageView for your content which works so much better. Here's the list of parameters you can pass in now:

  FancyBottomNavigation(
      {@required this.tabs,
      this.onTabChangedListener,
      this.key,
      this.initialSelection = 0,
      this.circleColor,
      this.circleHeight = kCircleHeight,
      this.circleOutline = kCircleOutline,
      this.arcHeight = kArcHeight,
      this.arcWidth = kArcWidth,
      this.shadowAllowance = kShadowAllowance,
      this.barHeight = kBarHeight,
      this.activeIconColor,
      this.inactiveIconColor,
      this.titleStyle = const TextStyle(),
      this.gradient,
      this.barBackgroundColor,
      this.shadowColor,
      this.inactiveIconSize,
      this.activeIconSize,
      this.animDuration = 300,
      this.pageController})

Solves a lot of people's requests. If @tunitowen wants me to submit it as a Pull Request to save time merging the other PRs into the next version, I'd be happy to do so....

Skquark avatar Oct 21 '19 01:10 Skquark