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();

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;

Learn more about the root domain.

Get the app namespace #

String namespace = AtEnv.appNamespace;

Learn more about the namespace.

Get the at_onboarding_flutter api key #

String? apiKey = AtEnv.appApiKey;

Learn more about the api key.

Get the at_onboarding_flutter RootEnvironment #

var apiKey = AtEnv.rootEnvironment;

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
130
pub points
70%
popularity

Publisher

verified publisheratsign.org

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

Homepage
Repository (GitHub)
View/report issues
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