mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-23 01:28:40 +00:00
@@ -119,7 +119,6 @@ class _SuperChatCardState extends State<SuperChatCard> {
|
||||
Text(
|
||||
"¥${item.price}",
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Utils.parseColor(item.backgroundPriceColor),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -16,14 +16,17 @@ class SuperChatPanel extends StatefulWidget {
|
||||
State<SuperChatPanel> createState() => _SuperChatPanelState();
|
||||
}
|
||||
|
||||
class _SuperChatPanelState extends DebounceStreamState<SuperChatPanel, bool> {
|
||||
class _SuperChatPanelState extends DebounceStreamState<SuperChatPanel, bool>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
@override
|
||||
Duration get duration => const Duration(milliseconds: 300);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
return Obx(
|
||||
() => ListView.separated(
|
||||
key: const PageStorageKey('live-sc'),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
physics: const ClampingScrollPhysics(),
|
||||
itemCount: widget.controller.superChatMsg.length,
|
||||
@@ -42,4 +45,7 @@ class _SuperChatPanelState extends DebounceStreamState<SuperChatPanel, bool> {
|
||||
|
||||
@override
|
||||
void onValueChanged(value) => widget.controller.clearSC();
|
||||
|
||||
@override
|
||||
bool get wantKeepAlive => true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user