[mob][photos] Change button type to neutral

This commit is contained in:
Neeraj Gupta 2024-04-29 13:46:18 +05:30
parent 195ad01f14
commit b12e6221d4
2 changed files with 3 additions and 4 deletions

View file

@ -38,7 +38,7 @@ class _CastChooseDialogState extends State<CastChooseDialog> {
ButtonWidget(
labelText: S.of(context).autoPair,
icon: Icons.cast_outlined,
buttonType: ButtonType.primary,
buttonType: ButtonType.neutral,
buttonSize: ButtonSize.large,
shouldStickToDarkTheme: true,
buttonAction: ButtonAction.first,
@ -56,7 +56,7 @@ class _CastChooseDialogState extends State<CastChooseDialog> {
const SizedBox(height: 12),
ButtonWidget(
labelText: S.of(context).pairWithPin,
buttonType: ButtonType.primary,
buttonType: ButtonType.neutral,
// icon for pairing with TV manually
icon: Icons.tv_outlined,
buttonSize: ButtonSize.large,

View file

@ -78,14 +78,13 @@ class CastServiceImpl extends CastService {
}).timeout(
const Duration(seconds: 5),
onTimeout: () {
print('sendMessage timed out after 5 seconds');
debugPrint('sendMessage timed out after 5 seconds');
},
);
debugPrint("close session ${session.sessionId}");
session.close();
}
CastSessionManager().sessions.clear();
debugPrint("send close message");
return Future.value();
}