injectfy 1.0.1 copy "injectfy: ^1.0.1" to clipboard
injectfy: ^1.0.1 copied to clipboard

A minimalistic and easy-to-use dependency injection library for managing singletons and factories in Dart.

example/lib/main.dart

import 'package:example/app/config/inject.dart';
import 'package:example/app/pages/home_page.dart';
import 'package:flutter/material.dart';

void main() {
  Inject.inject();

  runApp(MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Injectfy Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: HomePage(),
    );
  }
}
3
likes
160
points
1.27k
downloads

Publisher

verified publisherevandersondev.com.br

Weekly Downloads

A minimalistic and easy-to-use dependency injection library for managing singletons and factories in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on injectfy