Debug Info Fix an Dependency Upgrades

This commit is contained in:
Sarah Jamie Lewis 2022-04-20 17:20:31 -07:00
parent e0bf47b6ab
commit 5e3387ec8a
4 changed files with 5 additions and 5 deletions

View File

@ -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("{}");
}
}

View File

@ -464,7 +464,7 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
Visibility(
visible: EnvironmentConfig.BUILD_VER == dev_version && !Platform.isAndroid,
child: FutureBuilder(
future: Provider.of<FlwtchState>(context).cwtch.GetDebugInfo(),
future: EnvironmentConfig.BUILD_VER != dev_version ||Platform.isAndroid ? null : Provider.of<FlwtchState>(context).cwtch.GetDebugInfo(),
builder: (context, snapshot) {
if (snapshot.hasData) {
return Column(

View File

@ -70,7 +70,7 @@ class _PeerSettingsViewState extends State<PeerSettingsView> {
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);

View File

@ -38,7 +38,7 @@ class _ProfileImageState extends State<ProfileImage> {
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,