Skip to content

Commit fc7ad76

Browse files
committed
feat:屏蔽ios版本检测功能
1 parent 298b2ce commit fc7ad76

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

lib/page/mine/index_2.dart

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,28 @@ class _IndexState extends State<Index> {
104104
Divider(
105105
color: Color(AppTheme.lineColor),
106106
),
107-
ListTile(
108-
onTap: () {
109-
AppVersion().check(context, showTips: true);
110-
},
111-
leading: Icon(Icons.history),
112-
title: Text(AppLocalizations.$t('common_mine_1.version')),
113-
trailing: Container(
114-
child: Row(
115-
mainAxisSize: MainAxisSize.min,
116-
children: <Widget>[
117-
Text(model.config.state.appVersion),
118-
Icon(Icons.navigate_next)
119-
],
120-
),
121-
)),
122-
Divider(
123-
color: Color(AppTheme.lineColor),
124-
),
107+
(Platform.isAndroid)
108+
? ListTile(
109+
onTap: () {
110+
AppVersion().check(context, showTips: true);
111+
},
112+
leading: Icon(Icons.history),
113+
title: Text(AppLocalizations.$t('common_mine_1.version')),
114+
trailing: Container(
115+
child: Row(
116+
mainAxisSize: MainAxisSize.min,
117+
children: <Widget>[
118+
Text(model.config.state.appVersion),
119+
Icon(Icons.navigate_next)
120+
],
121+
),
122+
))
123+
: Container(),
124+
(Platform.isAndroid)
125+
? Divider(
126+
color: Color(AppTheme.lineColor),
127+
)
128+
: Container(),
125129
],
126130
));
127131
}

0 commit comments

Comments
 (0)