Skip to content

Commit

Permalink
fix: 桌面端详情页丢失扩展时出现的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaoMint committed Jul 17, 2023
1 parent 9eb4601 commit dbd4cff
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/pages/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@ class _DetailPageState extends State<DetailPage> {
}

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),
Expand Down

0 comments on commit dbd4cff

Please sign in to comment.