use dot-shorthands where possible
This commit is contained in:
parent
6c0d7b6fed
commit
1d77f71950
1 changed files with 4 additions and 4 deletions
|
|
@ -125,10 +125,10 @@ final class ChatScroll({
|
||||||
final position = scrollController.position;
|
final position = scrollController.position;
|
||||||
|
|
||||||
if (position.extentAfter <= loadThreshold) {
|
if (position.extentAfter <= loadThreshold) {
|
||||||
await paginate(Direction.backward);
|
await paginate(.backward);
|
||||||
} else if (contextualEvent != null &&
|
} else if (contextualEvent != null &&
|
||||||
position.extentBefore <= loadThreshold) {
|
position.extentBefore <= loadThreshold) {
|
||||||
await paginate(Direction.forward);
|
await paginate(.forward);
|
||||||
} else if (position.extentBefore <= readThreshold) {
|
} else if (position.extentBefore <= readThreshold) {
|
||||||
await markRead();
|
await markRead();
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +168,7 @@ final class ChatScroll({
|
||||||
if (offset != null) {
|
if (offset != null) {
|
||||||
await scrollController.animateTo(
|
await scrollController.animateTo(
|
||||||
offset,
|
offset,
|
||||||
duration: const Duration(milliseconds: 700),
|
duration: const .new(milliseconds: 700),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
@ -185,7 +185,7 @@ final class ChatScroll({
|
||||||
await Scrollable.ensureVisible(
|
await Scrollable.ensureVisible(
|
||||||
context,
|
context,
|
||||||
alignment: 0.5,
|
alignment: 0.5,
|
||||||
duration: const Duration(milliseconds: 700),
|
duration: const .new(milliseconds: 700),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue