|
@@ -1,6 +1,6 @@
|
|
import "package:flutter/material.dart";
|
|
import "package:flutter/material.dart";
|
|
import "package:photos/generated/l10n.dart";
|
|
import "package:photos/generated/l10n.dart";
|
|
-import "package:photos/service_locator.dart";
|
|
|
|
|
|
+import "package:photos/l10n/l10n.dart";
|
|
import "package:photos/theme/ente_theme.dart";
|
|
import "package:photos/theme/ente_theme.dart";
|
|
import "package:photos/ui/components/buttons/button_widget.dart";
|
|
import "package:photos/ui/components/buttons/button_widget.dart";
|
|
import "package:photos/ui/components/models/button_type.dart";
|
|
import "package:photos/ui/components/models/button_type.dart";
|
|
@@ -11,10 +11,10 @@ class CastChooseDialog extends StatefulWidget {
|
|
}) : super(key: key) {}
|
|
}) : super(key: key) {}
|
|
|
|
|
|
@override
|
|
@override
|
|
- State<CastChooseDialog> createState() => _AutoCastDialogState();
|
|
|
|
|
|
+ State<CastChooseDialog> createState() => _CastChooseDialogState();
|
|
}
|
|
}
|
|
|
|
|
|
-class _AutoCastDialogState extends State<CastChooseDialog> {
|
|
|
|
|
|
+class _CastChooseDialogState extends State<CastChooseDialog> {
|
|
final bool doesUserExist = true;
|
|
final bool doesUserExist = true;
|
|
|
|
|
|
@override
|
|
@override
|
|
@@ -22,7 +22,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|
final textStyle = getEnteTextTheme(context);
|
|
final textStyle = getEnteTextTheme(context);
|
|
final AlertDialog alert = AlertDialog(
|
|
final AlertDialog alert = AlertDialog(
|
|
title: Text(
|
|
title: Text(
|
|
- "Play album on TV",
|
|
|
|
|
|
+ context.l10n.playOnTv,
|
|
style: textStyle.largeBold,
|
|
style: textStyle.largeBold,
|
|
),
|
|
),
|
|
content: Column(
|
|
content: Column(
|
|
@@ -31,7 +31,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|
children: [
|
|
children: [
|
|
const SizedBox(height: 8),
|
|
const SizedBox(height: 8),
|
|
Text(
|
|
Text(
|
|
- "Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.",
|
|
|
|
|
|
+ S.of(context).autoPairGoogle,
|
|
style: textStyle.bodyMuted,
|
|
style: textStyle.bodyMuted,
|
|
),
|
|
),
|
|
const SizedBox(height: 12),
|
|
const SizedBox(height: 12),
|
|
@@ -50,7 +50,7 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|
),
|
|
),
|
|
const SizedBox(height: 36),
|
|
const SizedBox(height: 36),
|
|
Text(
|
|
Text(
|
|
- "Pair with PIN works for any large screen device you want to play your album on.",
|
|
|
|
|
|
+ S.of(context).manualPairDesc,
|
|
style: textStyle.bodyMuted,
|
|
style: textStyle.bodyMuted,
|
|
),
|
|
),
|
|
const SizedBox(height: 12),
|
|
const SizedBox(height: 12),
|
|
@@ -73,11 +73,4 @@ class _AutoCastDialogState extends State<CastChooseDialog> {
|
|
);
|
|
);
|
|
return alert;
|
|
return alert;
|
|
}
|
|
}
|
|
-
|
|
|
|
- Future<void> _connectToYourApp(
|
|
|
|
- BuildContext context,
|
|
|
|
- Object castDevice,
|
|
|
|
- ) async {
|
|
|
|
- await castService.connectDevice(context, castDevice);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|