nostr images fetching from API

This commit is contained in:
gitea
2025-11-06 00:45:58 +01:00
parent c37dce0222
commit 9650fc78a8
12 changed files with 2694 additions and 233 deletions
@@ -0,0 +1,61 @@
import 'package:flutter/material.dart';
import '../../data/nostr/nostr_service.dart';
import '../../data/sync/sync_engine.dart';
/// Screen for displaying Nostr events (placeholder).
class NostrEventsScreen extends StatelessWidget {
final NostrService? nostrService;
final SyncEngine? syncEngine;
const NostrEventsScreen({
super.key,
this.nostrService,
this.syncEngine,
});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Nostr Events'),
),
body: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.cloud_outlined,
size: 64,
color: Colors.grey,
),
SizedBox(height: 16),
Text(
'Nostr Events',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8),
Text(
'This screen will display Nostr events',
style: TextStyle(
fontSize: 14,
color: Colors.grey,
),
),
SizedBox(height: 24),
Text(
'Placeholder: Add your Nostr events UI here',
style: TextStyle(
fontSize: 12,
color: Colors.grey,
),
),
],
),
),
);
}
}