So, I’m new to Flutter and, just for the hell of it really, I’m playing around trying to reconfigure the BottomAppBar class. The thing is, I can’t for the life of me figure out how the CircularNotchedRectangle class gets visibility of the FAB rectangle location in order to calculate the notch.
BottomAppBar sourdce is here: flutter/bottom_app_bar.dart at f4abaa0735eba4dfd8f33f73363911d63931fe03 · flutter/flutter · GitHub
CircularNotchedRectangle source is here: flutter/notched_shapes.dart at f4abaa0735eba4dfd8f33f73363911d63931fe03 · flutter/flutter · GitHub
The line Path getOuterPath(Rect host, Rect? guest) in the CircularNotchedRectangle source takes information about the bottom app bar shape (Rect host) and information about the FAB (Rect? guest), depending on whether it intersects or not, but where do these values enter the class because these variables don’t appear in the constructor?
Can anyone help please? Would really appreciate it…