File tree Expand file tree Collapse file tree 1 file changed +7
-28
lines changed
lib/presentation_layer/routes Expand file tree Collapse file tree 1 file changed +7
-28
lines changed Original file line number Diff line number Diff line change 1- import 'package:camelus/config/palette.dart' ;
2- import 'package:camelus/domain_layer/entities/feed_filter.dart' ;
3- import 'package:camelus/presentation_layer/components/generic_feed.dart' ;
4- import 'package:camelus/presentation_layer/providers/following_provider.dart' ;
5-
61import 'package:flutter/material.dart' ;
72import 'package:hooks_riverpod/hooks_riverpod.dart' ;
83
4+ import '../../config/palette.dart' ;
5+
96class NotificationPage extends ConsumerWidget {
107 const NotificationPage ({super .key});
118
129 @override
1310 Widget build (BuildContext context, ref) {
14- final followP = ref.watch (followingProvider);
15-
1611 return Scaffold (
17- backgroundColor: Palette .background,
18- appBar: AppBar (
19- title: Text ("Notifications" ),
20- ),
21- body: FutureBuilder (
22- future: followP.getContactsSelf (),
23- builder: (context, snapshot) {
24- if (snapshot.connectionState == ConnectionState .waiting) {
25- return Center (child: CircularProgressIndicator ());
26- } else {
27- return GenericFeed (
28- feedFilter: FeedFilter (
29- feedId: "testfeed" ,
30- kinds: [1 ],
31- authors: snapshot.data? .contacts ?? [],
32- ),
33- );
34- }
35- },
36- ),
37- );
12+ backgroundColor: Palette .background,
13+ body: const Center (
14+ child:
15+ Text ('work in progress' , style: TextStyle (color: Colors .white)),
16+ ));
3817 }
3918}
You can’t perform that action at this time.
0 commit comments