Skip to content

Commit

Permalink
支持 devicePixelRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
changweihua committed Aug 17, 2023
1 parent b027e44 commit 5d15e14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/scrolls_to_top.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ class _FakeScrollContext extends ScrollContext {

@override
TickerProvider get vsync => _FakeTickerProvider();

@override
double get devicePixelRatio => MediaQuery.of(_context).devicePixelRatio;
}

class _FakeTickerProvider extends TickerProvider {
Expand Down

0 comments on commit 5d15e14

Please sign in to comment.