@@ -62,7 +62,7 @@ class _DesktopHomePageState extends State<DesktopHomePage> {
62
62
Widget build (BuildContext context) {
63
63
final playerToTheRight = context.mediaQuerySize.width > kSideBarThreshHold;
64
64
final isInFullWindowMode =
65
- watchPropertyValue ((AppModel m) => m.fullWindowMode);
65
+ watchPropertyValue ((AppModel m) => m.fullWindowMode ?? false );
66
66
final isVideo = watchPropertyValue ((PlayerModel m) => m.isVideo == true );
67
67
68
68
registerStreamHandler (
@@ -104,23 +104,30 @@ class _DesktopHomePageState extends State<DesktopHomePage> {
104
104
return Stack (
105
105
alignment: Alignment .center,
106
106
children: [
107
- Row (
108
- children: [
109
- Expanded (
110
- child: Column (
111
- children: [
112
- const Expanded (child: MasterDetailPage ()),
113
- if (! playerToTheRight)
114
- const PlayerView (position: PlayerPosition .bottom),
115
- ],
107
+ ExcludeFocus (
108
+ excluding: isInFullWindowMode == true ,
109
+ child: Row (
110
+ children: [
111
+ Expanded (
112
+ child: Column (
113
+ children: [
114
+ const Expanded (child: MasterDetailPage ()),
115
+ if (! playerToTheRight)
116
+ const PlayerView (position: PlayerPosition .bottom),
117
+ ],
118
+ ),
116
119
),
117
- ),
118
- if (playerToTheRight)
119
- const SizedBox (
120
- width: kSideBarPlayerWidth,
121
- child: PlayerView (position: PlayerPosition .sideBar),
122
- ),
123
- ],
120
+ if (playerToTheRight)
121
+ AnimatedOpacity (
122
+ opacity: playerToTheRight ? 1 : 0 ,
123
+ duration: const Duration (milliseconds: 300 ),
124
+ child: const SizedBox (
125
+ width: kSideBarPlayerWidth,
126
+ child: PlayerView (position: PlayerPosition .sideBar),
127
+ ),
128
+ ),
129
+ ],
130
+ ),
124
131
),
125
132
if (isInFullWindowMode == true )
126
133
Scaffold (
0 commit comments