diff --git a/mobile/lib/ui/cast/auto.dart b/mobile/lib/ui/cast/auto.dart index 64bae7cf3..0b088a9d2 100644 --- a/mobile/lib/ui/cast/auto.dart +++ b/mobile/lib/ui/cast/auto.dart @@ -56,7 +56,7 @@ class _AutoCastDialogState extends State { } if (snapshot.data!.isEmpty) { - return const Center(child: Text(S.of(context).noDeviceFound)); + return Center(child: Text(S.of(context).noDeviceFound)); } return Column( diff --git a/mobile/lib/ui/cast/choose.dart b/mobile/lib/ui/cast/choose.dart index f3ab39a62..1cfd275c8 100644 --- a/mobile/lib/ui/cast/choose.dart +++ b/mobile/lib/ui/cast/choose.dart @@ -6,9 +6,9 @@ import "package:photos/ui/components/buttons/button_widget.dart"; import "package:photos/ui/components/models/button_type.dart"; class CastChooseDialog extends StatefulWidget { - CastChooseDialog({ + const CastChooseDialog({ Key? key, - }) : super(key: key) {} + }) : super(key: key); @override State createState() => _CastChooseDialogState(); diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart index 9e53014ed..d7b1b0190 100644 --- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart +++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart @@ -861,7 +861,7 @@ class _GalleryAppBarWidgetState extends State { context: context, barrierDismissible: true, builder: (BuildContext context) { - return CastChooseDialog(); + return const CastChooseDialog(); }, ); _logger.info("Cast result: $result");