refactor: performance

This commit is contained in:
2025-05-13 16:09:04 +01:00
parent 9e5108930a
commit e3dc985b0d
13 changed files with 325 additions and 259 deletions

View File

@ -16,6 +16,7 @@ class HomePage extends StatelessWidget {
children: [
HeaderWidget(),
RxFilter<Nip01Event>(
Key("home-page"),
filters: [
Filter(kinds: [30_311], limit: 50),
],

View File

@ -81,7 +81,7 @@ class ProfilePage extends StatelessWidget {
),
RxFilter<Nip01Event>(
key: Key("profile-streams:$hexPubkey"),
Key("profile-streams:$hexPubkey"),
relays: defaultRelays,
filters: [
Filter(kinds: [30_311], limit: 200, pTags: [hexPubkey]),

View File

@ -75,6 +75,7 @@ class _StreamPage extends State<StreamPage> {
@override
Widget build(BuildContext context) {
return RxFilter<Nip01Event>(
Key("stream:event:${widget.stream.aTag}"),
relays: widget.stream.info.relays,
filters: [
Filter(