Skip to content

channdara/everything_i_need

Repository files navigation

Add Dependency

Since the plugin is not available on pub.dev yet, you have to add dependency directly from GitHub. Note that the ref can be branch name, commit hash or tag.

dependencies:
  everything_i_need:
    git:
      url: https://github.com/channdara/everything_i_need.git
      ref: main

Initialize

Wrap your app initial screen (the home of MaterialApp) with EinWrapperWidget to ensure some functionality work accordingly. Also EinWrapperWidget provide you some possibility to override some default widget and behavior too.

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const Application());
}
class Application extends StatefulWidget {
  const Application({super.key});

  @override
  State<Application> createState() => _ApplicationState();
}

class _ApplicationState extends State<Application> {
  @override
  void dispose() {
    disposeEin();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: EinWrapperWidget(
        context: context,
        loadingWidget: const CircularProgressIndicator.adaptive(),
        errorWidget: (param) => const SizedBox(),
        emptyWidget: (param) => const SizedBox(),
        child: const SplashScreen(),
      ),
    );
  }
}

Sub-Dependencies

We have use multiple dependencies inside this core plugin and also expose those plugin to user too.

  • auto_size_text
  • cached_network_image
  • carousel_slider
  • collection
  • connectivity_plus
  • dio
  • flutter_bloc
  • flutter_localization
  • flutter_secure_storage
  • intl
  • pretty_dio_logger

About

Everything I need for my projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors