This commit is contained in:
2025-05-08 16:30:30 +01:00
commit d2c613b6a3
162 changed files with 6841 additions and 0 deletions

34
lib/pages/home.dart Normal file
View File

@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
import 'package:ndk/ndk.dart';
import 'package:zap_stream_flutter/rx_filter.dart';
import 'package:zap_stream_flutter/widgets/header.dart';
import 'package:zap_stream_flutter/widgets/stream_grid.dart';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Container(
margin: EdgeInsets.all(5.0),
child: Column(
children: [
HeaderWidget(),
RxFilter<Nip01Event>(
filter: Filter(kinds: [30_311], limit: 10),
builder: (ctx, state) {
if (state == null) {
return SizedBox.shrink();
} else {
return StreamGrid(events: state);
}
},
),
//other stuff..
],
),
),
);
}
}