at_app_flutter 4.0.0-rc+2 copy "at_app_flutter: ^4.0.0-rc+2" to clipboard
at_app_flutter: ^4.0.0-rc+2 copied to clipboard

outdated

A library that help developers build flutter applications on the @platform.

example/example.md

Examples #

Using AtEnv #

Loading the environment

AtEnv.load();

Get the root domain

var rootDomain = AtEnv.rootDomain;

Get the app namespace

var namespace = AtEnv.appNamespace;

Get the app api key

var apiKey = AtEnv.appApiKey;

Using AtContext #

Get the AtContext instance from the BuildContext #

AtContext atContext = AtContext.of(context);

Using the AtContext instance #

Get the AtClientService

AtClientService atClientService = atContext.atClientService;

Get the AtClientInstance

AtClientImpl? atClientInstance = atContext.atClient;

Get the Currently Onboarded AtSign

String? currentAtSign = atContext.currentAtSign;

Get the AtClientPreference

AtClientPreference atClientPreference = atContext.atClientPreference;

Onboard with another Atsign

atContext.switchAtsign("@example");