11. 📦Plugin & Dependency Reference

📜 How to Add Plugins

  1. Open pubspec.yaml

  2. Add dependencies under the dependencies: section

  3. In the dependencies section you can add new package as showing in following image

  4. Run:

    flutter pub get

🔍Explore Flutter plugins: pub.dev


🔌 Key Flutter Plugins Used

PluginPurposeWhy It Was ChosenCommon Alternatives
httpPerform RESTful API calls to InvestGlassLightweight, easy to usedio, chopper
flutter_secure_storageStore tokens securely on deviceProvides secure keychain/keystore storageshared_preferences (less secure), hive
providerState management across screensOfficially recommended by Flutter teamriverpod, bloc, getx
path_providerLocate device directories (e.g., for downloading files)Simple and effective for file accessfile_picker, open_filex
url_launcherOpen external links and PDF previewsCommon for mobile-friendly navigation
shared_preferencesStore theme/language preferencesSimple key-value storagehive, get_storage

🛠️ Why These Plugins Were Chosen

  • Security: flutter_secure_storage ensures sensitive data (tokens) are encrypted at rest
  • Simplicity: http and provider reduce boilerplate while remaining flexible
  • Stability: All used plugins are well-maintained and production-tested
  • Compatibility: Fully supports both Android and iOS platforms

🧩 Any Custom Plugins Developed?

As of this documentation version, no custom Flutter plugins have been developed specifically for the Kleber App. However, the application does include custom Dart utility classes, such as:

  • end_points.dart – Centralized configuration for API environments
  • Custom form handlers and PDF utilities for validating

These are not plugins, but they serve similar modular purposes within the app.