mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -1,5 +1,5 @@
|
|||||||
PODS:
|
PODS:
|
||||||
- app_links (6.4.1):
|
- app_links (7.0.0):
|
||||||
- Flutter
|
- Flutter
|
||||||
- audio_service (0.0.1):
|
- audio_service (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
@@ -219,7 +219,7 @@ EXTERNAL SOURCES:
|
|||||||
:path: ".symlinks/plugins/wakelock_plus/ios"
|
:path: ".symlinks/plugins/wakelock_plus/ios"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
app_links: 585674be3c6661708e6cd794ab4f39fb9d8356f9
|
app_links: 6d01271b3907b0ee7325c5297c75d697c4226c4d
|
||||||
audio_service: cab6c1a0eaf01b5a35b567e11fa67d3cc1956910
|
audio_service: cab6c1a0eaf01b5a35b567e11fa67d3cc1956910
|
||||||
audio_session: 19e9480dbdd4e5f6c4543826b2e8b0e4ab6145fe
|
audio_session: 19e9480dbdd4e5f6c4543826b2e8b0e4ab6145fe
|
||||||
auto_orientation: 102ed811a5938d52c86520ddd7ecd3a126b5d39d
|
auto_orientation: 102ed811a5938d52c86520ddd7ecd3a126b5d39d
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ abstract class Update {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int latest =
|
final data = res.data[0];
|
||||||
DateTime.parse(res.data[0]['created_at']).millisecondsSinceEpoch ~/
|
final int latest =
|
||||||
1000;
|
DateTime.parse(data['created_at']).millisecondsSinceEpoch ~/ 1000;
|
||||||
if (BuildConfig.buildTime >= latest) {
|
if (BuildConfig.buildTime >= latest) {
|
||||||
if (!isAuto) {
|
if (!isAuto) {
|
||||||
SmartDialog.showToast('已是最新版本');
|
SmartDialog.showToast('已是最新版本');
|
||||||
@@ -48,7 +48,7 @@ abstract class Update {
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
final ThemeData theme = Theme.of(context);
|
final ThemeData theme = Theme.of(context);
|
||||||
Widget downloadBtn(String text, {String? ext}) => TextButton(
|
Widget downloadBtn(String text, {String? ext}) => TextButton(
|
||||||
onPressed: () => onDownload(res.data[0], ext: ext),
|
onPressed: () => onDownload(data, ext: ext),
|
||||||
child: Text(text),
|
child: Text(text),
|
||||||
);
|
);
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
@@ -60,11 +60,11 @@ abstract class Update {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${res.data[0]['tag_name']}',
|
'${data['tag_name']}',
|
||||||
style: const TextStyle(fontSize: 20),
|
style: const TextStyle(fontSize: 20),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text('${res.data[0]['body']}'),
|
Text('${data['body']}'),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => PageUtils.launchURL(
|
onPressed: () => PageUtils.launchURL(
|
||||||
'${Constants.sourceCodeUrl}/commits/main',
|
'${Constants.sourceCodeUrl}/commits/main',
|
||||||
|
|||||||
Reference in New Issue
Block a user