mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-22 17:18:41 +00:00
opt dyn post
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -284,13 +284,11 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
PreferredSizeWidget _buildAppBar(ThemeData theme) => PreferredSize(
|
Widget _buildAppBar(ThemeData theme) => Container(
|
||||||
preferredSize: const Size.fromHeight(66),
|
height: 66,
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
alignment: Alignment.center,
|
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
@@ -341,7 +339,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Widget _buildPrivateWidget(ThemeData theme) {
|
Widget _buildPrivateWidget(ThemeData theme) {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class _RepostPanelState extends CommonRichTextPubPageState<RepostPanel> {
|
|||||||
mainAxisSize: _isMax ? MainAxisSize.max : MainAxisSize.min,
|
mainAxisSize: _isMax ? MainAxisSize.max : MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
_isMax ? const SizedBox(height: 16) : const SizedBox(height: 10),
|
if (!_isMax) const SizedBox(height: 10),
|
||||||
_buildAppBar(theme),
|
_buildAppBar(theme),
|
||||||
if (_isMax) ...[
|
if (_isMax) ...[
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -237,7 +237,7 @@ class _RepostPanelState extends CommonRichTextPubPageState<RepostPanel> {
|
|||||||
borderSide: BorderSide.none,
|
borderSide: BorderSide.none,
|
||||||
gapPadding: 0,
|
gapPadding: 0,
|
||||||
),
|
),
|
||||||
contentPadding: const EdgeInsets.symmetric(vertical: 10),
|
contentPadding: EdgeInsets.zero,
|
||||||
),
|
),
|
||||||
// inputFormatters: [LengthLimitingTextInputFormatter(1000)],
|
// inputFormatters: [LengthLimitingTextInputFormatter(1000)],
|
||||||
),
|
),
|
||||||
@@ -267,11 +267,10 @@ class _RepostPanelState extends CommonRichTextPubPageState<RepostPanel> {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
: Container(
|
: Container(
|
||||||
height: 34,
|
height: 66,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
alignment: Alignment.center,
|
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
@@ -367,15 +366,15 @@ class _RepostPanelState extends CommonRichTextPubPageState<RepostPanel> {
|
|||||||
{"raw_text": ":", "type": 1, "biz_id": ""},
|
{"raw_text": ":", "type": 1, "biz_id": ""},
|
||||||
...item.modules.moduleDynamic!.desc!.richTextNodes!.map(
|
...item.modules.moduleDynamic!.desc!.richTextNodes!.map(
|
||||||
(e) {
|
(e) {
|
||||||
int? type;
|
int type;
|
||||||
String? bizId;
|
String bizId;
|
||||||
switch (e.type) {
|
switch (e.type) {
|
||||||
case 'RICH_TEXT_NODE_TYPE_EMOJI':
|
case 'RICH_TEXT_NODE_TYPE_EMOJI':
|
||||||
type = 9;
|
type = 9;
|
||||||
bizId = '';
|
bizId = '';
|
||||||
case 'RICH_TEXT_NODE_TYPE_AT':
|
case 'RICH_TEXT_NODE_TYPE_AT':
|
||||||
type = 2;
|
type = 2;
|
||||||
bizId = e.rid;
|
bizId = e.rid ?? '';
|
||||||
case 'RICH_TEXT_NODE_TYPE_TEXT':
|
case 'RICH_TEXT_NODE_TYPE_TEXT':
|
||||||
default:
|
default:
|
||||||
type = 1;
|
type = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user