Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //In this, we will create a variable to hold [indicatorHeight] i.e 15.0
  2. //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.
  3. //And set the y-axis to tab height center position and subtracting the value of indicatorHeight center value.
  4.  
  5. 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