Skip to content

Commit 491f08d

Browse files
committed
Trying to make more players under abstract one
1 parent 5df39a6 commit 491f08d

8 files changed

Lines changed: 805 additions & 423 deletions

File tree

lib/app.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ class _AppState extends State<App> with WidgetsBindingObserver {
130130
builder: (context, isChatVisible, child) {
131131
return Selector<PlayerModel, double>(
132132
selector: (context, player) {
133-
final isInit =
134-
player.controller?.value.isInitialized ?? false;
133+
final isInit = player.isVideoLoaded();
135134
if (!isInit) return 16 / 9;
136-
return player.controller?.value.aspectRatio ?? 16 / 9;
135+
return player.player?.aspectRatio ?? 16 / 9;
137136
},
138137
builder: (context, ratio, child) {
139138
final media = MediaQuery.of(context);

0 commit comments

Comments
 (0)