xBuilder_XMenu method

dynamic xBuilder_XMenu(
  1. dynamic tabController(),
  2. dynamic onPinned(),
  3. bool pinned_Value
)

Implementation

xBuilder_XMenu(Function() tabController, Function() onPinned, bool pinned_Value) {
  return XfxMenu(
    widget.appState.xApp.liXMenus, tabController,
    logOut_Visible: widget.logOUT_Active,
    title: widget.title,
    padding: EdgeInsets.symmetric(vertical: 10),
    logOut_OnTap: () async {
      var x = await warnLogOff(context);
      if (x) {
        Navigator.pop(context);
        Navigator.pop(context);
      }
    },
    title_Style: XStyles.xStyTextForLabel(Colors.white),
    menu_BackGroundColor: Colors.grey[900],
    onPressed_PinnedBTN: () {
      if (widget.appState.li_XAree.isEmpty) {
      } else {
        onPinned();
      }
    },
    pinned_Value: pinned_Value,
    onPressed_MenuItem: (i) => checkActive_Area(i),
    // nameApp: Text(sex.app_Name, style: XStyles.xStyTextForLabel()),
  );
}