mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-26 19:18:43 +00:00
Compare commits
3 Commits
db08af6ca5
...
1e83a23c5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e83a23c5c | ||
|
|
2d69c05f33 | ||
|
|
7a2dbe68c7 |
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -106,11 +106,6 @@ jobs:
|
||||
- name: Flutter Build Dev Apk
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
echo "${{ secrets.SIGN_KEYSTORE_BASE64_DEV }}" | base64 --decode > android/app/dev.jks
|
||||
echo storeFile='dev.jks' >> android/key.properties
|
||||
echo storePassword='${{ secrets.KEYSTORE_PASSWORD_DEV }}' >> android/key.properties
|
||||
echo keyAlias='${{ secrets.KEY_ALIAS_DEV }}' >> android/key.properties
|
||||
echo keyPassword='${{ secrets.KEY_PASSWORD_DEV }}' >> android/key.properties
|
||||
flutter build apk --release --split-per-abi --android-project-arg dev=1 --pub
|
||||
|
||||
- name: Rename
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
enum ReplySortType {
|
||||
time('最新评论', '最新'),
|
||||
hot('最热评论', '最热')
|
||||
hot('最热评论', '最热'),
|
||||
select('精选评论', '精选')
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -80,13 +80,13 @@ abstract class CommonPageState<T extends StatefulWidget> extends State<T> {
|
||||
0.0,
|
||||
StyleString.topBarHeight,
|
||||
);
|
||||
final offset = newValue - value;
|
||||
final offset = value - newValue;
|
||||
if (offset != 0) {
|
||||
_barOffset!.value = newValue;
|
||||
if (pixel < 0.0 && scrollDelta < 0.0 && value > 0.0) {
|
||||
return false;
|
||||
}
|
||||
Scrollable.of(notification.context!).position.correctBy(-offset);
|
||||
Scrollable.of(notification.context!).position.correctBy(offset);
|
||||
}
|
||||
} else {
|
||||
_updateOffset(scrollDelta);
|
||||
|
||||
@@ -71,6 +71,9 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
if (data.hasUpTop()) {
|
||||
data.replies.insert(0, data.upTop);
|
||||
}
|
||||
if (subjectControl?.title == ReplySortType.select.title) {
|
||||
sortType.value = .select;
|
||||
}
|
||||
}
|
||||
isEnd = data.cursor.isEnd;
|
||||
return false;
|
||||
@@ -87,7 +90,6 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
// 排序搜索评论
|
||||
void queryBySort() {
|
||||
if (isLoading) return;
|
||||
feedBack();
|
||||
switch (sortType.value) {
|
||||
case ReplySortType.time:
|
||||
sortType.value = ReplySortType.hot;
|
||||
@@ -97,7 +99,10 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
sortType.value = ReplySortType.time;
|
||||
mode.value = Mode.MAIN_LIST_TIME;
|
||||
break;
|
||||
case ReplySortType.select:
|
||||
return;
|
||||
}
|
||||
feedBack();
|
||||
onReload();
|
||||
}
|
||||
|
||||
|
||||
@@ -1111,7 +1111,7 @@ Future<void> _showReplySortDialog(
|
||||
builder: (context) => SelectDialog<ReplySortType>(
|
||||
title: '评论展示',
|
||||
value: Pref.replySortType,
|
||||
values: ReplySortType.values.map((e) => (e, e.title)).toList(),
|
||||
values: ReplySortType.values.take(2).map((e) => (e, e.title)).toList(),
|
||||
),
|
||||
);
|
||||
if (res != null) {
|
||||
|
||||
Reference in New Issue
Block a user