mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-25 04:50:10 +08:00
feat: emote selection
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -63,7 +63,8 @@ void _showEmoteDialog(ModuleDynamicModel? moduleDynamic) {
|
||||
return TextSpan(
|
||||
children: [
|
||||
if (i != 0) const TextSpan(text: '\n\n'),
|
||||
WidgetSpan(
|
||||
EmoteSpan(
|
||||
rawText: Style.placeHolder,
|
||||
child: NetworkImgLayer(
|
||||
src: emoji.url,
|
||||
type: .emote,
|
||||
|
||||
@@ -23,7 +23,8 @@ void showReplyCopyDialog(
|
||||
return TextSpan(
|
||||
children: [
|
||||
if (i != 0) const TextSpan(text: '\n\n'),
|
||||
WidgetSpan(
|
||||
EmoteSpan(
|
||||
rawText: Style.placeHolder,
|
||||
child: NetworkImgLayer(
|
||||
src: emote.url,
|
||||
type: .emote,
|
||||
|
||||
15
lib/common/widgets/emote_span.dart
Normal file
15
lib/common/widgets/emote_span.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter/widgets.dart' show WidgetSpan;
|
||||
|
||||
class EmoteSpan extends WidgetSpan {
|
||||
const EmoteSpan({
|
||||
required super.child,
|
||||
super.alignment,
|
||||
super.baseline,
|
||||
super.style,
|
||||
this.rawText,
|
||||
});
|
||||
|
||||
@override
|
||||
// ignore: override_on_non_overriding_member
|
||||
final String? rawText;
|
||||
}
|
||||
Reference in New Issue
Block a user