flutter_bloc_inject 1.0.2 copy "flutter_bloc_inject: ^1.0.2" to clipboard
flutter_bloc_inject: ^1.0.2 copied to clipboard

Flutter Dependency Injection to apps with Bloc pattern, to provide an easy injection pattern and powerful

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_bloc_inject/flutter_bloc_inject.dart';

import 'app_inject.dart';
import 'home.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {

    AppInjector.initialise(Injector.getInjector());

    return MaterialApp(

      title: "Flutter Bloc Inject",

      theme: ThemeData(
          primaryColorDark: Colors.blue,
      ),

      home: BlocProvider<LoginBloc>(child:LoginScreen()),
    );

  }
}
2
likes
40
points
22
downloads

Publisher

verified publishersoftarch.dev

Weekly Downloads

Flutter Dependency Injection to apps with Bloc pattern, to provide an easy injection pattern and powerful

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_bloc_inject