forked from cwtch.im/cwtch-ui
Debug Info Fix an Dependency Upgrades
This commit is contained in:
parent
e0bf47b6ab
commit
5e3387ec8a
|
@ -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("{}");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue