Debug Info Fix and Dependency Upgrades #433

Merged
dan merged 5 commits from perf into trunk 2022-04-21 23:56:33 +00:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit 5e3387ec8a - Show all commits

View File

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

View File

@ -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(

View File

@ -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);

View File

@ -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,