From 251f7c658246b2c4523b8d0dd962b6c38188f9e2 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Mon, 3 Jun 2024 12:57:46 -0400 Subject: [PATCH] updated analytics navigation to work with new constructs popup --- lib/pangea/pages/analytics/base_analytics.dart | 4 +--- lib/pangea/pages/analytics/base_analytics_view.dart | 10 ---------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/pangea/pages/analytics/base_analytics.dart b/lib/pangea/pages/analytics/base_analytics.dart index 8e16bd8c8..f4b07348d 100644 --- a/lib/pangea/pages/analytics/base_analytics.dart +++ b/lib/pangea/pages/analytics/base_analytics.dart @@ -93,9 +93,7 @@ class BaseAnalyticsController extends State { pangeaController.analytics.currentAnalyticsTimeSpan; void navigate() { - if (currentLemma != null) { - setCurrentLemma(null); - } else if (selectedView != null) { + if (selectedView != null) { setSelectedView(null); } else { Navigator.of(context).pop(); diff --git a/lib/pangea/pages/analytics/base_analytics_view.dart b/lib/pangea/pages/analytics/base_analytics_view.dart index 8709010b5..5c2b9fef1 100644 --- a/lib/pangea/pages/analytics/base_analytics_view.dart +++ b/lib/pangea/pages/analytics/base_analytics_view.dart @@ -77,16 +77,6 @@ class BaseAnalyticsView extends StatelessWidget { ? controller.setCurrentLemma(null) : null, ), - if (controller.currentLemma != null) - const TextSpan( - text: " > ", - ), - if (controller.currentLemma != null) - TextSpan( - text: controller.currentLemma, - style: const TextStyle(decoration: TextDecoration.underline), - recognizer: TapGestureRecognizer()..onTap = () {}, - ), ], ), overflow: TextOverflow.ellipsis,