Skip to content

Commit

Permalink
fixed several danmaku errors (Predidit#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Predidit committed Sep 9, 2024
1 parent fc52f92 commit 649c91b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions lib/pages/player/player_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,10 @@ class _PlayerItemState extends State<PlayerItem>
left: 0,
right: 0,
height: videoPageController.androidFullscreen
? MediaQuery.sizeOf(context).height *
danmakuArea
? MediaQuery.sizeOf(context).height
: (MediaQuery.sizeOf(context).width *
9 /
16 *
danmakuArea),
16),
child: DanmakuScreen(
key: _danmuKey,
createdController: (DanmakuController e) {
Expand All @@ -1003,6 +1001,7 @@ class _PlayerItemState extends State<PlayerItem>
hideTop: _hideTop,
hideScroll: _hideScroll,
hideBottom: _hideBottom,
area: danmakuArea,
opacity: _opacity,
fontSize: _fontSize,
duration: _duration.toInt(),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ packages:
dependency: "direct main"
description:
name: canvas_danmaku
sha256: e220268151c24733f7e0ee429ab23edae5465b0cc797151384442c5a91c9ad78
sha256: "128644574b5454c9290d9896a2560a751960109f902a8b943bf4b420fa09699d"
url: "https://pub.dev"
source: hosted
version: "0.1.8"
version: "0.1.9"
characters:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dependencies:
xpath_selector: ^3.0.2
xpath_selector_html_parser: ^3.0.1
webview_flutter: ^4.9.0
canvas_danmaku: ^0.1.8
canvas_danmaku: ^0.1.9
webdav_client: ^1.2.2
tray_manager: ^0.2.3
dlna_dart: ^0.0.8
Expand Down

0 comments on commit 649c91b

Please sign in to comment.