mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: numFormat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -246,7 +246,8 @@ class VideoCardV extends StatelessWidget {
|
|||||||
size: 'small',
|
size: 'small',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
fs: 9,
|
fs: 9,
|
||||||
)
|
),
|
||||||
|
const SizedBox(width: 2),
|
||||||
],
|
],
|
||||||
if (videoItem.rcmdReason != null) ...[
|
if (videoItem.rcmdReason != null) ...[
|
||||||
PBadge(
|
PBadge(
|
||||||
@@ -254,7 +255,8 @@ class VideoCardV extends StatelessWidget {
|
|||||||
stack: 'normal',
|
stack: 'normal',
|
||||||
size: 'small',
|
size: 'small',
|
||||||
type: 'color',
|
type: 'color',
|
||||||
)
|
),
|
||||||
|
const SizedBox(width: 2),
|
||||||
],
|
],
|
||||||
if (videoItem.goto == 'picture') ...[
|
if (videoItem.goto == 'picture') ...[
|
||||||
const PBadge(
|
const PBadge(
|
||||||
@@ -263,7 +265,8 @@ class VideoCardV extends StatelessWidget {
|
|||||||
size: 'small',
|
size: 'small',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
fs: 9,
|
fs: 9,
|
||||||
)
|
),
|
||||||
|
const SizedBox(width: 2),
|
||||||
],
|
],
|
||||||
if (videoItem.isFollowed == 1) ...[
|
if (videoItem.isFollowed == 1) ...[
|
||||||
const PBadge(
|
const PBadge(
|
||||||
@@ -271,7 +274,8 @@ class VideoCardV extends StatelessWidget {
|
|||||||
stack: 'normal',
|
stack: 'normal',
|
||||||
size: 'small',
|
size: 'small',
|
||||||
type: 'color',
|
type: 'color',
|
||||||
)
|
),
|
||||||
|
const SizedBox(width: 2),
|
||||||
],
|
],
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -306,7 +310,7 @@ class VideoCardV extends StatelessWidget {
|
|||||||
view: videoItem.stat.view,
|
view: videoItem.stat.view,
|
||||||
goto: videoItem.goto,
|
goto: videoItem.goto,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 4),
|
||||||
if (videoItem.goto != 'picture')
|
if (videoItem.goto != 'picture')
|
||||||
statDanMu(
|
statDanMu(
|
||||||
context: context,
|
context: context,
|
||||||
|
|||||||
@@ -84,7 +84,10 @@ class _RcmdPageState extends State<RcmdPage>
|
|||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.only(top: StyleString.cardSpace),
|
padding: EdgeInsets.only(
|
||||||
|
top: StyleString.cardSpace,
|
||||||
|
bottom: MediaQuery.paddingOf(context).bottom,
|
||||||
|
),
|
||||||
sliver: Obx(
|
sliver: Obx(
|
||||||
() => _controller.loadingState.value is Loading ||
|
() => _controller.loadingState.value is Loading ||
|
||||||
_controller.loadingState.value is Success
|
_controller.loadingState.value is Success
|
||||||
|
|||||||
@@ -477,7 +477,10 @@ class Utils {
|
|||||||
return '00:00';
|
return '00:00';
|
||||||
}
|
}
|
||||||
if (number is String) {
|
if (number is String) {
|
||||||
return number;
|
number = int.tryParse(number) ?? number;
|
||||||
|
if (number is String) {
|
||||||
|
return number;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (number >= 100000000) {
|
if (number >= 100000000) {
|
||||||
return '${(number / 100000000).toStringAsFixed(1)}亿';
|
return '${(number / 100000000).toStringAsFixed(1)}亿';
|
||||||
|
|||||||
Reference in New Issue
Block a user