-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimize]调整小工具“实验性”图标透明的;“风格转换”页面的Column改为LazyColumn;首页“添加”按钮改为FAB
- Loading branch information
Showing
7 changed files
with
141 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.skyd.rays.ext | ||
|
||
import androidx.compose.foundation.ScrollState | ||
import androidx.compose.foundation.lazy.LazyListState | ||
|
||
// 如果滚动到了最下面 或者 不够长不能滚动时为true | ||
val ScrollState.inBottomOrNotLarge: Boolean | ||
get() = value < maxValue || maxValue == 0 | ||
|
||
// 如果滚动到了最下面 或者 不够长不能滚动时为true | ||
val LazyListState.inBottomOrNotLarge: Boolean | ||
get() = canScrollForward || firstVisibleItemIndex == 0 && firstVisibleItemScrollOffset == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.