Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -109,9 +109,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
itemBuilder: (context, index) {
if (index == length - 1) {
return GestureDetector(
onTap: () {
_showColorPicker();
},
onTap: _showColorPicker,
child: Container(
decoration: BoxDecoration(
color: themeData.colorScheme.secondaryContainer,
@@ -230,9 +228,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
Widget _buildColorItem(Color color) {
return GestureDetector(
onTap: () {
_color.value = color;
},
onTap: () => _color.value = color,
child: Container(
padding: const EdgeInsets.all(2),
decoration: BoxDecoration(
@@ -284,9 +280,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
return Obx(
() => Expanded(
child: GestureDetector(
onTap: () {
_mode.value = mode;
},
onTap: () => _mode.value = mode,
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(
@@ -314,9 +308,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
return Obx(
() => Expanded(
child: GestureDetector(
onTap: () {
_fontsize.value = fontsize;
},
onTap: () => _fontsize.value = fontsize,
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(