Skip to content
pubscout

flutter_secure_dotenv_generator

2.0.1, released 9 months ago by mfazrinizar.com

A development dependency to generate secure dotenv file for flutter_secure_dotenv package.

$ flutter pub add flutter_secure_dotenv_generator
Source repository

What it does

Acts as a development dependency and code generator for the flutter_secure_dotenv package to help manage environment variables securely. It processes configuration files and generates the necessary code during build time.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using the flutter_secure_dotenv package in your Flutter project
  • You need to generate secure dotenv files during the build process

Skip it when

  • You are not using flutter_secure_dotenv
  • You prefer manual environment variable management without code generation

Strengths

  • Automates secure dotenv file generation
  • Integrated with build_runner and source_gen workflows

Weaknesses

  • Requires flutter_secure_dotenv to function
  • Adds build-time dependencies

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
9

Add as a development dependency alongside build_runner and configure for your flutter_secure_dotenv setup.

Alternatives

Packages that do the same job and could replace flutter_secure_dotenv_generator.

  • mason

    Dart template generator for quick file creation

  • envied

    Explicitly reads environment variables into a dart file from a .env file.

  • drift_dev

    Generates Dart database code from Drift table definitions as a dev‑dependency.

  • protobuf

    Provides runtime support for Dart protocol buffer messages generated by protoc_plugin.

Works with

Packages commonly used together with flutter_secure_dotenv_generator: ones it builds on, ones built on it, and its own family.