From d764a6f56734d80bc231bc9941765a9c7da0fade Mon Sep 17 00:00:00 2001 From: vjrj <vjrj@comunes.org> Date: Sat, 30 Dec 2023 12:41:40 +0100 Subject: [PATCH] Added dev info to drawer --- lib/ui/widgets/card_drawer.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ui/widgets/card_drawer.dart b/lib/ui/widgets/card_drawer.dart index 0701b6fb..bdd84966 100644 --- a/lib/ui/widgets/card_drawer.dart +++ b/lib/ui/widgets/card_drawer.dart @@ -9,6 +9,7 @@ import 'package:package_info_plus/package_info_plus.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import '../../data/models/cesium_card.dart'; +import '../../data/models/node_manager.dart'; import '../../main.dart'; import '../../shared_prefs_helper.dart'; import '../screens/sandbox.dart'; @@ -56,6 +57,12 @@ class CardDrawer extends StatelessWidget { ], ), ), + if (inDevelopment) + ListTile( + leading: const Text('Last gva node'), + title: Text(NodeManager().getCurrentGvaNode() != null + ? NodeManager().getCurrentGvaNode()!.url + : 'None')), SizedBox( height: (cards.length * 70) + 50, child: const Center( -- GitLab