showMoreWidget method

Widget showMoreWidget(
  1. BuildContext context
)

Implementation

Widget showMoreWidget(BuildContext context) {
  return Visibility(
    visible: widget.showMore,
    child: GestureDetector(
      onTap: () {
        if (!_brnTabbarController.isShow &&
            widget.controller!.index.toDouble() ==
                widget.controller!.animation!.value) {
          _brnTabbarController.show();
          if (widget.onMorePop != null) {
            widget.onMorePop!();
          }
          showMoreWindow(context);
          setState(() {});
        } else {
          hideMoreWindow();
          setState(() {});
        }
      },
      child: Container(
          width: _moreSpacing,
          height: widget.themeData!.tabHeight,
          decoration: const BoxDecoration(
            color: Colors.white,
            boxShadow: [
              BoxShadow(
                  color: Color(0x05000000),
                  offset: Offset(-3, 0),
                  spreadRadius: -1)
            ],
          ),
          child: !_brnTabbarController.isShow
              ? PhoenixTools.getAssetImage(TabbarAssets.iconTriangleDown,
                  package: 'phoenix_tabbar')
              : PhoenixTools.getAssetImageWithBandColor(
                  TabbarAssets.iconTriangleUp,
                  package: 'phoenix_tabbar')),
    ),
  );
}