mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
@@ -82,7 +82,7 @@ class _PayCoinsPageState extends State<PayCoinsPage>
|
||||
|
||||
Timer? _timer;
|
||||
late final RxInt _thunderIndex = (-1).obs;
|
||||
late final List<String> _thunderImages = const [
|
||||
static const List<String> _thunderImages = [
|
||||
'assets/images/paycoins/ic_thunder_1.png',
|
||||
'assets/images/paycoins/ic_thunder_2.png',
|
||||
'assets/images/paycoins/ic_thunder_3.png',
|
||||
|
||||
@@ -115,17 +115,12 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
|
||||
if (imageList.isNotEmpty) {
|
||||
return SizedBox(
|
||||
height: 85,
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.fromLTRB(15, 0, 15, 10),
|
||||
child: Row(
|
||||
spacing: 10,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: List.generate(
|
||||
imageList.length,
|
||||
(index) => buildImage(index, 75),
|
||||
),
|
||||
),
|
||||
child: ListView.separated(
|
||||
scrollDirection: .horizontal,
|
||||
padding: const .fromLTRB(15, 0, 15, 10),
|
||||
itemCount: imageList.length,
|
||||
itemBuilder: (_, index) => buildImage(index, 75),
|
||||
separatorBuilder: (_, _) => const SizedBox(width: 10),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
@@ -314,6 +309,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
|
||||
return SizedBox(
|
||||
height: height,
|
||||
child: GridView(
|
||||
physics: const ClampingScrollPhysics(),
|
||||
padding: const EdgeInsets.only(left: 12, bottom: 12, right: 12),
|
||||
gridDelegate: gridDelegate,
|
||||
children: [
|
||||
|
||||
@@ -179,62 +179,62 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
|
||||
),
|
||||
),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'弹幕字号',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildFontSizeItem(18, '小'),
|
||||
const SizedBox(width: 5),
|
||||
_buildFontSizeItem(25, '标准'),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'弹幕样式',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildPositionItem(1, '滚动'),
|
||||
const SizedBox(width: 5),
|
||||
_buildPositionItem(5, '顶部'),
|
||||
const SizedBox(width: 5),
|
||||
_buildPositionItem(4, '底部'),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'弹幕颜色',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildColorPanel,
|
||||
],
|
||||
),
|
||||
SizedBox(height: 12 + MediaQuery.viewPaddingOf(context).bottom),
|
||||
],
|
||||
child: ListView(
|
||||
physics: const ClampingScrollPhysics(),
|
||||
padding: .only(
|
||||
top: 12,
|
||||
bottom: 12 + MediaQuery.viewPaddingOf(context).bottom,
|
||||
),
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'弹幕字号',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildFontSizeItem(18, '小'),
|
||||
const SizedBox(width: 5),
|
||||
_buildFontSizeItem(25, '标准'),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'弹幕样式',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildPositionItem(1, '滚动'),
|
||||
const SizedBox(width: 5),
|
||||
_buildPositionItem(5, '顶部'),
|
||||
const SizedBox(width: 5),
|
||||
_buildPositionItem(4, '底部'),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'弹幕颜色',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: themeData.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
_buildColorPanel,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user