flutter_native_env 0.0.1+2 copy "flutter_native_env: ^0.0.1+2" to clipboard
flutter_native_env: ^0.0.1+2 copied to clipboard

A flutter plugin getting android and iOS native env variables.

flutter_native_env #

A flutter plugin getting android and iOS native env variables by calling ProcessInfo.processInfo.environment[] on iOS and System.getProperty() on android.

It can be used to easily fetch environment variables added during build or no-code testing, like flutter_is_waldo.

Usage #

Have a look on installation page.

import 'dart:async';
import 'package:flutter_native_env/flutter_native_env.dart';

String platformArch = await FlutterNativeEnv.getNativeEnv('os.arch', 'unknown', iosPropertyName: 'SIMULATOR_ARCHS');  // e.g. "x86_64"

You will find links to the API docs on the pub API reference page.

0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A flutter plugin getting android and iOS native env variables.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_native_env