mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -1,4 +1,4 @@
|
||||
import 'package:PiliPlus/common/constants.dart' show StyleString;
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/pages/home/controller.dart';
|
||||
import 'package:PiliPlus/pages/main/controller.dart';
|
||||
import 'package:flutter/foundation.dart' show clampDouble;
|
||||
@@ -58,7 +58,7 @@ abstract class CommonPageState<T extends StatefulWidget> extends State<T> {
|
||||
_barOffset!.value = clampDouble(
|
||||
_barOffset!.value + scrollDelta,
|
||||
0.0,
|
||||
StyleString.topBarHeight,
|
||||
Style.topBarHeight,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ abstract class CommonPageState<T extends StatefulWidget> extends State<T> {
|
||||
final newValue = clampDouble(
|
||||
value + scrollDelta,
|
||||
0.0,
|
||||
StyleString.topBarHeight,
|
||||
Style.topBarHeight,
|
||||
);
|
||||
final offset = value - newValue;
|
||||
if (offset != 0) {
|
||||
|
||||
Reference in New Issue
Block a user