Debug Info Fix and Dependency Upgrades #433
|
@ -330,7 +330,7 @@ class CwtchGomobile implements Cwtch {
|
||||||
@override
|
@override
|
||||||
Future GetDebugInfo() {
|
Future GetDebugInfo() {
|
||||||
// FIXME: getDebugInfo is less useful for Android so for now
|
// FIXME: getDebugInfo is less useful for Android so for now
|
||||||
// we just assume it will always be called from desktop...
|
// we don't implement it
|
||||||
throw UnimplementedError();
|
return Future.value("{}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,7 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: EnvironmentConfig.BUILD_VER == dev_version && !Platform.isAndroid,
|
visible: EnvironmentConfig.BUILD_VER == dev_version && !Platform.isAndroid,
|
||||||
child: FutureBuilder(
|
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) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
return Column(
|
return Column(
|
||||||
|
|
|
@ -70,7 +70,7 @@ class _PeerSettingsViewState extends State<PeerSettingsView> {
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text: country,
|
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))]));
|
children: [TextSpan(text: " ($ip)", style: TextStyle(fontSize: 8, fontWeight: FontWeight.normal))]));
|
||||||
}).toList(growable: true);
|
}).toList(growable: true);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class _ProfileImageState extends State<ProfileImage> {
|
||||||
var file = new File(widget.imagePath);
|
var file = new File(widget.imagePath);
|
||||||
var image = Image.file(
|
var image = Image.file(
|
||||||
file,
|
file,
|
||||||
cacheWidth: 1920,
|
cacheWidth: (4 * widget.diameter.floor()),
|
||||||
filterQuality: FilterQuality.medium,
|
filterQuality: FilterQuality.medium,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
Loading…
Reference in New Issue