skip to Main Content

Can't get the right return type in Flutter BlocConsumer

I'm having trouble accessing the state in bloc consumer This is repository implementation class for managing errors class UserRepositoryImplementation implements UserRepository { const UserRepositoryImplementation(this._remoteDataSource); final UserRemoteDatasource _remoteDataSource; @override ResultFuture<List<UserListModel>> fetchAllUsers() async { try { final result = await _remoteDataSource.fetchAllUsers(); return…

VIEW QUESTION

Unnable to delete data in realtime firebase

I'd like to delete all of the data inside of specific node, without knowledge of specific id's. I've written some function within button click: val dbref = FirebaseDatabase.getInstance().reference.child("Message") dbref.addValueEventListener(object : ValueEventListener { override fun onDataChange(snapshot: DataSnapshot) { for (data in…

VIEW QUESTION

Flutter – Why my output have no Image and heading in all red with double yellow underline along with black background?

import 'package:flutter/material.dart'; class SiginupPage extends StatefulWidget { const SiginupPage({super.key}); @override State<SiginupPage> createState() => _SiginupPageState(); } class _SiginupPageState extends State<SiginupPage> { @override Widget build(BuildContext context) { return SafeArea(child: Container( width: double.infinity, height: MediaQuery.of(context).size.height, padding: const EdgeInsets.symmetric(horizontal: 30,vertical: 30), child: Column( mainAxisAlignment:…

VIEW QUESTION
Back To Top
Search