skip to Main Content

Flutter AutoFillGroup/Autofill hints not working

My code to show and submit login form: class LoginWidget extends StatelessWidget { const LoginWidget({ super.key, }); @override Widget build(BuildContext context) { final citiesLoaded = context.select((LoginBloc bloc) => bloc.state.citiesLoaded); final loginBloc = context.read<LoginBloc>(); final selectedCity = (citiesLoaded && loginBloc.state.cities.length ==…

VIEW QUESTION

Flutter – How to manage an enum-typed BLoC event?

I am using these packages for the following codes: flutter_bloc, oxidized, freezed, and get_it tmdb_bloc.dart typedef TmdbState = PageState<List<MovieEntity>>; class TmdbBloc extends Bloc<TmdbEvent, TmdbState> { final TmdbPublicUseCases useCases; TmdbBloc(this.useCases) : super(const PageState.initial()) { on<TmdbEvent>((event, emit) async { event.map( getPopularMovies: (_)…

VIEW QUESTION

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
Back To Top
Search