|
1 | 1 | import 'package:core/presentation/extensions/color_extension.dart';
|
2 | 2 | import 'package:core/presentation/utils/responsive_utils.dart';
|
3 | 3 | import 'package:core/presentation/views/responsive/responsive_widget.dart';
|
| 4 | +import 'package:cozy/cozy_config_manager/cozy_config_manager.dart'; |
4 | 5 | import 'package:flutter/material.dart';
|
5 | 6 | import 'package:flutter_portal/flutter_portal.dart';
|
6 | 7 | import 'package:get/get.dart';
|
@@ -38,19 +39,26 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
|
38 | 39 | child: ResponsiveWidget(
|
39 | 40 | responsiveUtils: controller.responsiveUtils,
|
40 | 41 | desktop: Column(children: [
|
41 |
| - Obx(() => NavigationBarWidget( |
42 |
| - imagePaths: controller.imagePaths, |
43 |
| - accountId: controller.accountId.value, |
44 |
| - ownEmailAddress: controller.getOwnEmailAddress(), |
45 |
| - onTapApplicationLogoAction: () => |
46 |
| - controller.backToMailboxDashBoard(context: context), |
| 42 | + FutureBuilder( |
| 43 | + future: CozyConfigManager().isInsideCozy, |
| 44 | + builder: (context, snapshot) { |
| 45 | + if (snapshot.data == true) return const SizedBox.shrink(); |
| 46 | + |
| 47 | + return Obx(() => NavigationBarWidget( |
| 48 | + imagePaths: controller.imagePaths, |
| 49 | + accountId: controller.accountId.value, |
| 50 | + ownEmailAddress: controller.getOwnEmailAddress(), |
| 51 | + onTapApplicationLogoAction: () => |
| 52 | + controller.backToMailboxDashBoard(context: context), |
47 | 53 | settingActionTypes: const [ProfileSettingActionType.signOut],
|
48 |
| - onProfileSettingActionTypeClick: (actionType) => |
49 |
| - controller.handleProfileSettingActionTypeClick( |
| 54 | + onProfileSettingActionTypeClick: (actionType) => |
| 55 | + controller.handleProfileSettingActionTypeClick( |
50 | 56 | context: context,
|
51 | 57 | actionType: actionType,
|
52 | 58 | ),
|
53 |
| - )), |
| 59 | + )); |
| 60 | + } |
| 61 | + ), |
54 | 62 | Expanded(child: Row(
|
55 | 63 | crossAxisAlignment: CrossAxisAlignment.start,
|
56 | 64 | children: [
|
|
0 commit comments