INNER CODE UNIT · Dart
halfOfHostWidth
LanarsInc/animated-bottom-navigation-bar-flutter · lib/src/circular_notched_and_cornered_shape.dart:66
final halfOfHostWidth = host.width ~/ 2;
if (guestCenterDx == halfOfHostWidth) {
if (gapLocation == GapLocation.end) {
throw GapLocationException(
'Wrong gap location in $AnimatedBottomNavigationBar towards FloatingActionButtonLocation => '
'consider use ${GapLocation.center} instead of $gapLocation or change FloatingActionButtonLocation');
}
}
if (guestCenterDx != halfOfHostWidth) {
if (gapLocation == GapLocation.center) {
throw GapLocationException(
'Wrong gap location in $AnimatedBottomNavigationBar towards FloatingActionButtonLocation => '
'consider use ${GapLocation.end} instead of $gapLocation or change FloatingActionButtonLocation');
}
}