flutter_reach_five 0.7.2 copy "flutter_reach_five: ^0.7.2" to clipboard
flutter_reach_five: ^0.7.2 copied to clipboard

This package allows you to use the methods from the reachFive android and ios native sdks in Flutter

example/example.md


void main() => runApp(const MyExampleApp());

class MyExampleApp extends StatelessWidget {
  const MyExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return FutureBuilder<ReachFive>(
      future: ReachFiveManager().initialize(
        sdkConfig: const SdkConfig(
          domain: 'YOUR_DOMAIN',
          clientId: 'YOUR_CLIENT_ID',
          scheme: 'YOUR_SCHEME',
        ),
      ),
      builder: (context, snapshot) {
        final reachFive = snapshot.data;
        if (reachFive != null) {
          // You can use your reachFive method here
          // Here is an example with loginWithPassword
          // Check the others methods in the doc or in the example repo
          return Column(
            children: [
              ElevatedButton(
                onPressed: () async => reachFive.loginWithPassword(
                  password: 'YOUR_PASSWORD',
                  email: 'YOUR_EMAIL',
                ),
                child: const Text('Login with password'),
              )
            ],
          );
        }

        if (snapshot.hasError) {
          return const Text('handle your initialization error here');
        }

        return const Text('Loading');
      },
    );
  }
}
6
likes
130
points
206
downloads

Publisher

verified publisherbam.tech

Weekly Downloads

This package allows you to use the methods from the reachFive android and ios native sdks in Flutter

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

built_value, dio, equatable, flutter, flutter_reach_five_android, flutter_reach_five_ios, flutter_reach_five_platform_interface, freezed, freezed_annotation, reach_five_identity_repo

More

Packages that depend on flutter_reach_five