FxTabIndicationPainter constructor

FxTabIndicationPainter({
  1. required double indicatorWidth,
  2. required double xPadding,
  3. required double indicatorRadius,
  4. required double yPadding,
  5. PageController? pageController,
  6. Color? selectedBackground,
})

Implementation

FxTabIndicationPainter({required this.indicatorWidth,
  required this.xPadding, required this.indicatorRadius, required this.yPadding,
  this.pageController, this.selectedBackground})
    : super(repaint: pageController) {
  dxTarget = this.indicatorWidth;
  dxEntry = this.xPadding;
  radius = indicatorRadius;
  dy = yPadding;
  painter = new Paint()
    ..color = selectedBackground!
    ..style = PaintingStyle.fill;
}