Fix warnings in Photos

This commit is contained in:
vishnukvmd 2024-03-01 18:54:19 +05:30
parent 8c8723efd1
commit a875cad231
2 changed files with 3 additions and 2 deletions

View file

@ -837,13 +837,13 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
hintText: context.l10n.deviceCodeHint,
onSubmit: (String text) async {
try {
String code = text.trim();
final code = text.trim();
final String? publicKey = await gw.getPublicKey(code);
if (publicKey == null) {
showToast(context, S.of(context).deviceNotFound);
return;
}
final String castToken = Uuid().v4().toString();
final String castToken = const Uuid().v4().toString();
final castPayload = CollectionsService.instance
.getCastData(castToken, widget.collection!, publicKey);
await gw.publishCastPayload(

View file

@ -98,6 +98,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
padding: const EdgeInsets.only(bottom: 180),
physics: const BouncingScrollPhysics(),
itemCount: searchTypes.length,
// ignore: body_might_complete_normally_nullable
itemBuilder: (context, index) {
switch (searchTypes[index]) {
case SectionType.album: