bottom property

Widget get bottom

Implementation

Widget get bottom {
  return Positioned(
      bottom: 0,
      left: 0,
      right: 0,
      child: AnimatedBuilder(
        animation: _height,
        builder: (BuildContext context, Widget? child) {
          return Transform.translate(
            offset: Offset(0, _height.value),
            child: BottomNavigationBar(
              currentIndex: selectedIndex,
              onTap: (index) {
                setState(() {
                  selectedIndex = index;
                  // debugPrint("fromOutside: $byOutside");
                  // debugPrint("index: $index");
                  if (byOutside) {
                    pushBase(context, selectedIndex: selectedIndex);
                  }
                });
              },
              type: BottomNavigationBarType.fixed,
              items: _bottomNavigationBarItems,
            ),
          );
        },
      ));
}