Skip to content

Commit

Permalink
Merge pull request #12 from changweihua/main
Browse files Browse the repository at this point in the history
支持 devicePixelRatio
  • Loading branch information
otopba authored Sep 1, 2023
2 parents 81ac4d5 + 5d15e14 commit 0ca16f8
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 0ca16f8

Please sign in to comment.