From 5e3387ec8a6a1e62c5bea8dc314a7750dc218874 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 20 Apr 2022 17:20:31 -0700 Subject: [PATCH] Debug Info Fix an Dependency Upgrades --- lib/cwtch/gomobile.dart | 4 ++-- lib/views/globalsettingsview.dart | 2 +- lib/views/peersettingsview.dart | 2 +- lib/widgets/profileimage.dart | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cwtch/gomobile.dart b/lib/cwtch/gomobile.dart index 1e1aaed5..b8b678e3 100644 --- a/lib/cwtch/gomobile.dart +++ b/lib/cwtch/gomobile.dart @@ -330,7 +330,7 @@ class CwtchGomobile implements Cwtch { @override Future GetDebugInfo() { // FIXME: getDebugInfo is less useful for Android so for now - // we just assume it will always be called from desktop... - throw UnimplementedError(); + // we don't implement it + return Future.value("{}"); } } diff --git a/lib/views/globalsettingsview.dart b/lib/views/globalsettingsview.dart index e2a5cb99..29adecb1 100644 --- a/lib/views/globalsettingsview.dart +++ b/lib/views/globalsettingsview.dart @@ -464,7 +464,7 @@ class _GlobalSettingsViewState extends State { Visibility( visible: EnvironmentConfig.BUILD_VER == dev_version && !Platform.isAndroid, child: FutureBuilder( - future: Provider.of(context).cwtch.GetDebugInfo(), + future: EnvironmentConfig.BUILD_VER != dev_version ||Platform.isAndroid ? null : Provider.of(context).cwtch.GetDebugInfo(), builder: (context, snapshot) { if (snapshot.hasData) { return Column( diff --git a/lib/views/peersettingsview.dart b/lib/views/peersettingsview.dart index f391f82b..20354246 100644 --- a/lib/views/peersettingsview.dart +++ b/lib/views/peersettingsview.dart @@ -70,7 +70,7 @@ class _PeerSettingsViewState extends State { textAlign: TextAlign.left, text: TextSpan( text: country, - style: TextStyle(fontWeight: FontWeight.bold, fontSize: 10, fontFamily: "monospace"), + style: TextStyle(fontWeight: FontWeight.bold, fontSize: 10, fontFamily: "RobotoMono"), children: [TextSpan(text: " ($ip)", style: TextStyle(fontSize: 8, fontWeight: FontWeight.normal))])); }).toList(growable: true); diff --git a/lib/widgets/profileimage.dart b/lib/widgets/profileimage.dart index ad7e3ad7..4fae95f4 100644 --- a/lib/widgets/profileimage.dart +++ b/lib/widgets/profileimage.dart @@ -38,7 +38,7 @@ class _ProfileImageState extends State { var file = new File(widget.imagePath); var image = Image.file( file, - cacheWidth: 1920, + cacheWidth: (4 * widget.diameter.floor()), filterQuality: FilterQuality.medium, fit: BoxFit.cover, alignment: Alignment.center,