opt dyn repost

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-26 22:12:40 +08:00
parent 1d91b183fd
commit 39778247f6
3 changed files with 44 additions and 56 deletions

View File

@@ -504,10 +504,7 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
iconAlignment: IconAlignment.end,
);
Widget get _buildToolbar => GestureDetector(
onTap: hidePanel,
behavior: HitTestBehavior.opaque,
child: Padding(
Widget get _buildToolbar => Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Obx(
() => ToolbarIconButton(
@@ -523,7 +520,6 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
selected: panelType.value == PanelType.emoji,
),
),
),
);
Widget _buildEditWidget(ThemeData theme) => Form(

View File

@@ -119,7 +119,6 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
: AnimatedSize(
alignment: Alignment.topCenter,
curve: Curves.ease,
onEnd: () => _isExpanded = true,
duration: const Duration(milliseconds: 300),
child: child(),
);
@@ -192,12 +191,14 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
Widget _buildEditPlaceHolder(ThemeData theme) => GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () async {
onTap: () {
setState(() => _isMax = true);
await Future.delayed(const Duration(milliseconds: 300));
Future.delayed(const Duration(milliseconds: 300), () {
_isExpanded = true;
if (mounted) {
focusNode.requestFocus();
}
});
},
child: SizedBox(
width: double.infinity,
@@ -319,10 +320,7 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
),
);
Widget get _buildToolbar => GestureDetector(
onTap: hidePanel,
behavior: HitTestBehavior.opaque,
child: Padding(
Widget get _buildToolbar => Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Obx(
() => ToolbarIconButton(
@@ -338,7 +336,6 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
selected: panelType.value == PanelType.emoji,
),
),
),
);
List<Widget> _biuldDismiss(ThemeData theme) => [

View File

@@ -58,12 +58,8 @@ class _SelectTopicPanelState extends State<SelectTopicPanel> {
final theme = Theme.of(context);
return Column(
children: [
GestureDetector(
onTap: Get.back,
behavior: HitTestBehavior.opaque,
child: Container(
SizedBox(
height: 35,
padding: const EdgeInsets.only(bottom: 2),
child: Center(
child: Container(
width: 32,
@@ -75,7 +71,6 @@ class _SelectTopicPanelState extends State<SelectTopicPanel> {
),
),
),
),
Padding(
padding: const EdgeInsets.only(left: 16, right: 16, bottom: 5),
child: TextField(