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