diff --git a/lib/Core/x_base_widget.dart b/lib/Core/x_base_widget.dart index 5ecfa44..708cd43 100644 --- a/lib/Core/x_base_widget.dart +++ b/lib/Core/x_base_widget.dart @@ -100,12 +100,19 @@ abstract class BaseXWidget extends GetWidget { } Widget _contentBody(BuildContext context) { + bool isPage = true; + + if (c.page != null) { + isPage = (c.page as BaseXWidget).routeName == routeName; + } return Stack( children: [ Column( mainAxisSize: MainAxisSize.max, children: [ - if (baseConstant.position == Position.top && baseConstant.appEnv == Environment.Staging) + if (baseConstant.position == Position.top && + baseConstant.appEnv == Environment.Staging && + isPage) envBar(), if (stackedAppBar == null) Expanded( @@ -148,7 +155,8 @@ abstract class BaseXWidget extends GetWidget { ), ), if (baseConstant.position == Position.bottom && - baseConstant.appEnv == Environment.Staging) + baseConstant.appEnv == Environment.Staging && + isPage) envBar(), ], ),