Feed stream with changenotifier

This commit is contained in:
SomnusVeritas
2023-10-20 21:13:49 +02:00
parent f849a42cf9
commit 8c1254ee1a
5 changed files with 82 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'package:maggs_victory_voyage/services/db_helper.dart';
import 'package:provider/provider.dart';
import '../services/feed_provider.dart';
import 'login_page.dart';
class SplashPage extends StatefulWidget {
@@ -41,6 +43,8 @@ class _SplashPageState extends State<SplashPage> {
if (DbHelper.currentUser == null) {
return const LoginPage();
}
Provider.of<Feed>(context, listen: false).feed;
return Scaffold(
body: const Column(
children: [