File tree Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments