nostr images fetching from API
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user