mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-19 05:04:57 +00:00
feat: improve chat modal
This commit is contained in:
@ -8,6 +8,21 @@ import 'package:zap_stream_flutter/theme.dart';
|
||||
import 'package:zap_stream_flutter/utils.dart';
|
||||
import 'package:zap_stream_flutter/widgets/profile.dart';
|
||||
|
||||
class NoteText extends StatelessWidget {
|
||||
final Nip01Event event;
|
||||
|
||||
const NoteText({super.key, required this.event});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return RichText(
|
||||
text: TextSpan(
|
||||
children: textToSpans(event.content, event.tags, event.pubKey),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a nostr note text containing links
|
||||
/// and mentions into multiple spans for rendering
|
||||
List<InlineSpan> textToSpans(
|
||||
|
Reference in New Issue
Block a user