From dbd4cff6dec1d701d48b443f3979f9bcf2960fff Mon Sep 17 00:00:00 2001 From: MiaoMint <1981324730@qq.com> Date: Mon, 17 Jul 2023 23:53:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E4=B8=A2=E5=A4=B1=E6=89=A9=E5=B1=95=E6=97=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/detail/view.dart | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/pages/detail/view.dart b/lib/pages/detail/view.dart index 7c7881ef..d6f831fb 100644 --- a/lib/pages/detail/view.dart +++ b/lib/pages/detail/view.dart @@ -126,20 +126,20 @@ class _DetailPageState extends State { } Widget _buildDesktopDetail(BuildContext context) { - return Obx(() { - if (!ExtensionUtils.extensions.containsKey(widget.package)) { - return Center( - child: Text( - FlutterI18n.translate( - context, - 'common.extension-missing', - translationParams: { - 'package': widget.package, - }, - ), + if (!ExtensionUtils.extensions.containsKey(widget.package)) { + return Center( + child: Text( + FlutterI18n.translate( + context, + 'common.extension-missing', + translationParams: { + 'package': widget.package, + }, ), - ); - } + ), + ); + } + return Obx(() { if (c.error.value.isNotEmpty) { return Center( child: Text(c.error.value),