mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-23 08:34:39 +01:00
opt: only display token on iOS
This commit is contained in:
@@ -94,14 +94,17 @@ class _SettingPageState extends State<SettingPage> {
|
||||
}
|
||||
|
||||
Widget _buildApp() {
|
||||
final children = [
|
||||
_buildThemeMode(),
|
||||
_buildAppColorPreview(),
|
||||
_buildLaunchPage(),
|
||||
_buildCheckUpdate(),
|
||||
];
|
||||
if (isIOS) {
|
||||
children.add(_buildPushToken());
|
||||
}
|
||||
return Column(
|
||||
children: [
|
||||
_buildThemeMode(),
|
||||
_buildAppColorPreview(),
|
||||
_buildLaunchPage(),
|
||||
_buildCheckUpdate(),
|
||||
_buildPushToken(),
|
||||
].map((e) => RoundRectCard(e)).toList(),
|
||||
children: children.map((e) => RoundRectCard(e)).toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -432,14 +435,8 @@ class _SettingPageState extends State<SettingPage> {
|
||||
noData: Text(_s.nullToken),
|
||||
success: (text) {
|
||||
_pushToken = text;
|
||||
if (_pushToken == null) {
|
||||
text = _s.nullToken;
|
||||
}
|
||||
if (!isIOS) {
|
||||
text = _s.onlyIOS;
|
||||
}
|
||||
return Text(
|
||||
text!,
|
||||
text ?? _s.nullToken,
|
||||
style: grey,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
|
||||
Reference in New Issue
Block a user