mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: emote panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -42,9 +42,9 @@ class _EmotePanelState extends State<EmotePanel>
|
|||||||
(e) {
|
(e) {
|
||||||
int size = e.emote!.first.meta!.size!;
|
int size = e.emote!.first.meta!.size!;
|
||||||
int type = e.type!;
|
int type = e.type!;
|
||||||
return Padding(
|
return GridView.builder(
|
||||||
padding: const EdgeInsets.fromLTRB(12, 6, 12, 0),
|
padding: const EdgeInsets.only(
|
||||||
child: GridView.builder(
|
left: 12, right: 12, bottom: 12),
|
||||||
gridDelegate:
|
gridDelegate:
|
||||||
SliverGridDelegateWithMaxCrossAxisExtent(
|
SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
maxCrossAxisExtent:
|
maxCrossAxisExtent:
|
||||||
@@ -76,8 +76,7 @@ class _EmotePanelState extends State<EmotePanel>
|
|||||||
src: e.emote![index].url!,
|
src: e.emote![index].url!,
|
||||||
width: size * 38,
|
width: size * 38,
|
||||||
height: size * 38,
|
height: size * 38,
|
||||||
semanticsLabel:
|
semanticsLabel: e.emote![index].text!,
|
||||||
e.emote![index].text!,
|
|
||||||
type: 'emote',
|
type: 'emote',
|
||||||
boxFit: BoxFit.contain,
|
boxFit: BoxFit.contain,
|
||||||
),
|
),
|
||||||
@@ -85,7 +84,6 @@ class _EmotePanelState extends State<EmotePanel>
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).toList(),
|
).toList(),
|
||||||
|
|||||||
@@ -60,9 +60,9 @@ class _LiveEmotePanelState extends State<LiveEmotePanel>
|
|||||||
max(1, item.emoticons!.first.width! / 80);
|
max(1, item.emoticons!.first.width! / 80);
|
||||||
double heightFac =
|
double heightFac =
|
||||||
max(1, item.emoticons!.first.height! / 80);
|
max(1, item.emoticons!.first.height! / 80);
|
||||||
return Padding(
|
return GridView.builder(
|
||||||
padding: const EdgeInsets.fromLTRB(12, 6, 12, 0),
|
padding: const EdgeInsets.only(
|
||||||
child: GridView.builder(
|
left: 12, right: 12, bottom: 12),
|
||||||
gridDelegate:
|
gridDelegate:
|
||||||
SliverGridDelegateWithMaxCrossAxisExtent(
|
SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
maxCrossAxisExtent: widthFac * 40,
|
maxCrossAxisExtent: widthFac * 40,
|
||||||
@@ -99,7 +99,6 @@ class _LiveEmotePanelState extends State<LiveEmotePanel>
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).toList(),
|
).toList(),
|
||||||
|
|||||||
@@ -39,10 +39,7 @@ class ReplyPage extends CommonPublishPage {
|
|||||||
class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
|
class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
|
||||||
final RxBool _syncToDynamic = false.obs;
|
final RxBool _syncToDynamic = false.obs;
|
||||||
|
|
||||||
Widget get child => MediaQuery.removePadding(
|
Widget get child => GestureDetector(
|
||||||
removeTop: true,
|
|
||||||
context: context,
|
|
||||||
child: GestureDetector(
|
|
||||||
onTap: Get.back,
|
onTap: Get.back,
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
@@ -68,7 +65,6 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user