Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //In this, we will create a variable to hold [indicatorHeight] i.e 15.0
- //Now, we will create a new offset to set the x-axis position of tab according to the TabIndicatorSize i.e label or tab start.
- //And set the y-axis to tab height center position and subtracting the value of indicatorHeight center value.
- final Rect rect = Offset(offset.dx, (configuration.size.height/2) - indicatorHeight/2) & Size(configuration.size.width, indicatorHeight);
Add Comment
Please, Sign In to add comment