TF-3603 Hide settings appbar if is inside Cozy dashboard
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||||
import 'package:core/presentation/views/responsive/responsive_widget.dart';
|
import 'package:core/presentation/views/responsive/responsive_widget.dart';
|
||||||
|
import 'package:cozy/cozy_config_manager/cozy_config_manager.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_portal/flutter_portal.dart';
|
import 'package:flutter_portal/flutter_portal.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -38,19 +39,26 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
|
|||||||
child: ResponsiveWidget(
|
child: ResponsiveWidget(
|
||||||
responsiveUtils: controller.responsiveUtils,
|
responsiveUtils: controller.responsiveUtils,
|
||||||
desktop: Column(children: [
|
desktop: Column(children: [
|
||||||
Obx(() => NavigationBarWidget(
|
FutureBuilder(
|
||||||
imagePaths: controller.imagePaths,
|
future: CozyConfigManager().isInsideCozy,
|
||||||
accountId: controller.accountId.value,
|
builder: (context, snapshot) {
|
||||||
ownEmailAddress: controller.getOwnEmailAddress(),
|
if (snapshot.data == true) return const SizedBox.shrink();
|
||||||
onTapApplicationLogoAction: () =>
|
|
||||||
controller.backToMailboxDashBoard(context: context),
|
return Obx(() => NavigationBarWidget(
|
||||||
|
imagePaths: controller.imagePaths,
|
||||||
|
accountId: controller.accountId.value,
|
||||||
|
ownEmailAddress: controller.getOwnEmailAddress(),
|
||||||
|
onTapApplicationLogoAction: () =>
|
||||||
|
controller.backToMailboxDashBoard(context: context),
|
||||||
settingActionTypes: const [ProfileSettingActionType.signOut],
|
settingActionTypes: const [ProfileSettingActionType.signOut],
|
||||||
onProfileSettingActionTypeClick: (actionType) =>
|
onProfileSettingActionTypeClick: (actionType) =>
|
||||||
controller.handleProfileSettingActionTypeClick(
|
controller.handleProfileSettingActionTypeClick(
|
||||||
context: context,
|
context: context,
|
||||||
actionType: actionType,
|
actionType: actionType,
|
||||||
),
|
),
|
||||||
)),
|
));
|
||||||
|
}
|
||||||
|
),
|
||||||
Expanded(child: Row(
|
Expanded(child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user