Only show beta tag in saas platform
This commit is contained in:
committed by
Dat H. Pham
parent
4281ff65b0
commit
f64a697793
@@ -21,7 +21,7 @@ class ApplicationLogoWidthTextWidget extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return TMailButtonWidget.fromIcon(
|
return TMailButtonWidget.fromIcon(
|
||||||
icon: PlatformInfo.isWeb && !AppConfig.isSaasPlatForm
|
icon: PlatformInfo.isWeb && AppConfig.isSaasPlatForm
|
||||||
? _imagePaths.icLogoWithTextBeta
|
? _imagePaths.icLogoWithTextBeta
|
||||||
: _imagePaths.icLogoWithText,
|
: _imagePaths.icLogoWithText,
|
||||||
iconSize: 33,
|
iconSize: 33,
|
||||||
|
|||||||
@@ -65,5 +65,5 @@ class AppConfig {
|
|||||||
|
|
||||||
static String get _platformEnv => dotenv.get('PLATFORM', fallback: 'other');
|
static String get _platformEnv => dotenv.get('PLATFORM', fallback: 'other');
|
||||||
|
|
||||||
static bool get isSaasPlatForm => _platformEnv == saasPlatform;
|
static bool get isSaasPlatForm => _platformEnv.toLowerCase() == saasPlatform;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user