bloc_list 0.0.9 copy "bloc_list: ^0.0.9" to clipboard
bloc_list: ^0.0.9 copied to clipboard

A flexible and customizable list widget for Flutter applications using the BLoC pattern for state management. It offers dynamic data loading, state-dependent rendering, custom loader support, and erro [...]

example/lib/main.dart

import 'package:example/blocs/chat_bloc.dart';
import 'package:example/blocs/todo_bloc.dart';
import 'package:example/data/data_service.dart';
import 'package:example/screens/chat.dart';
import 'package:example/screens/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

void main() {
  runApp(MultiBlocProvider(
    providers: [
      BlocProvider(create: (_) => TodoBloc(DataService())),
      BlocProvider(create: (_) => ChatBloc(DataService())),
    ],
    child: const MainApp(),
  ));
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    // return const MaterialApp(home: TodoListPage());
    return const MaterialApp(home: HomePage());
  }
}
3
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A flexible and customizable list widget for Flutter applications using the BLoC pattern for state management. It offers dynamic data loading, state-dependent rendering, custom loader support, and error handling, ideal for creating responsive and user-friendly list views.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_bloc, meta

More

Packages that depend on bloc_list