at_app_flutter 5.2.0 copy "at_app_flutter: ^5.2.0" to clipboard
at_app_flutter: ^5.2.0 copied to clipboard

A library that help developers build flutter applications on the atPlatform.

example/example.md

Usage #

Using AtEnv #

Loading the environment #

AtEnv.load();
copied to clipboard

In some cases, AtEnv.load() can throw an error, which should not be caught. You must ensure the following:

  • The .env file exists (even if it is empty)
  • The .env file is listed as a Flutter asset in pubspec.yaml

Get the root domain #

String rootDomain = AtEnv.rootDomain;
copied to clipboard

Learn more about the root domain.

Get the app namespace #

String namespace = AtEnv.appNamespace;
copied to clipboard

Learn more about the namespace.

Get the at_onboarding_flutter api key #

String? apiKey = AtEnv.appApiKey;
copied to clipboard

Learn more about the api key.

Get the at_onboarding_flutter RootEnvironment #

var apiKey = AtEnv.rootEnvironment;
copied to clipboard

The rootEnvironment is interpreted by AtEnv depending on whether the api key is available. If the api key is not null, then AtEnv will return RootEnvironment.Production. If the api key is null, then AtEnv will return RootEnvironment.Staging.

*Make sure to include an api key in your .env file, before publishing your app to the store.

2
likes
150
points
749
downloads

Publisher

verified publisheratsign.org

Weekly Downloads

2024.09.15 - 2025.03.30

A library that help developers build flutter applications on the atPlatform.

Homepage
Repository (GitHub)
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

at_onboarding_flutter, at_utils, flutter, flutter_dotenv, meta

More

Packages that depend on at_app_flutter