chore: bump dart sdk to 3.8 (#20355)

* chore: bump dart sdk to 3.8

* chore: make build

* make pigeon

* chore: format files

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-07-29 00:34:03 +05:30 committed by GitHub
parent 9b3718120b
commit e52b9d15b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
643 changed files with 32561 additions and 35292 deletions

View file

@ -58,10 +58,7 @@ class TopControlAppBar extends HookConsumerWidget {
Widget buildFavoriteButton(a) {
return IconButton(
onPressed: () => onFavorite(a),
icon: Icon(
a.isFavorite ? Icons.favorite : Icons.favorite_border,
color: Colors.grey[200],
),
icon: Icon(a.isFavorite ? Icons.favorite : Icons.favorite_border, color: Colors.grey[200]),
);
}
@ -70,10 +67,7 @@ class TopControlAppBar extends HookConsumerWidget {
onPressed: () {
onLocatePressed();
},
icon: Icon(
Icons.image_search,
color: Colors.grey[200],
),
icon: Icon(Icons.image_search, color: Colors.grey[200]),
);
}
@ -82,20 +76,14 @@ class TopControlAppBar extends HookConsumerWidget {
onPressed: () {
onMoreInfoPressed();
},
icon: Icon(
Icons.info_outline_rounded,
color: Colors.grey[200],
),
icon: Icon(Icons.info_outline_rounded, color: Colors.grey[200]),
);
}
Widget buildDownloadButton() {
return IconButton(
onPressed: onDownloadPressed,
icon: Icon(
Icons.cloud_download_outlined,
color: Colors.grey[200],
),
icon: Icon(Icons.cloud_download_outlined, color: Colors.grey[200]),
);
}
@ -104,10 +92,7 @@ class TopControlAppBar extends HookConsumerWidget {
onPressed: () {
onAddToAlbumPressed();
},
icon: Icon(
Icons.add,
color: Colors.grey[200],
),
icon: Icon(Icons.add, color: Colors.grey[200]),
);
}
@ -116,10 +101,7 @@ class TopControlAppBar extends HookConsumerWidget {
onPressed: () {
onRestorePressed();
},
icon: Icon(
Icons.history_rounded,
color: Colors.grey[200],
),
icon: Icon(Icons.history_rounded, color: Colors.grey[200]),
);
}
@ -131,19 +113,13 @@ class TopControlAppBar extends HookConsumerWidget {
icon: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(
Icons.mode_comment_outlined,
color: Colors.grey[200],
),
Icon(Icons.mode_comment_outlined, color: Colors.grey[200]),
if (comments != 0)
Padding(
padding: const EdgeInsets.only(left: 5),
child: Text(
comments.toString(),
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.grey[200],
),
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.grey[200]),
),
),
],
@ -154,10 +130,7 @@ class TopControlAppBar extends HookConsumerWidget {
Widget buildUploadButton() {
return IconButton(
onPressed: onUploadPressed,
icon: Icon(
Icons.backup_outlined,
color: Colors.grey[200],
),
icon: Icon(Icons.backup_outlined, color: Colors.grey[200]),
);
}
@ -166,21 +139,14 @@ class TopControlAppBar extends HookConsumerWidget {
onPressed: () {
context.maybePop();
},
icon: Icon(
Icons.arrow_back_ios_new_rounded,
size: 20.0,
color: Colors.grey[200],
),
icon: Icon(Icons.arrow_back_ios_new_rounded, size: 20.0, color: Colors.grey[200]),
);
}
Widget buildCastButton() {
return IconButton(
onPressed: () {
showDialog(
context: context,
builder: (context) => const CastDialog(),
);
showDialog(context: context, builder: (context) => const CastDialog());
},
icon: Icon(
isCasting ? Icons.cast_connected_rounded : Icons.cast_rounded,