shernova_ui 2.3.1 copy "shernova_ui: ^2.3.1" to clipboard
shernova_ui: ^2.3.1 copied to clipboard

PlatformAndroid

Optional UI components for Shernova phone verification.

shernova_ui #

Optional UI components for Shernova phone verification.

Requires the core shernova_core package. You do not need this package if you build your own verification screens with the headless API (Shernova.verify, Shernova.watch).

When to use #

Use shernova_ui Use headless shernova_core only
Prototypes and quick integration Production apps with custom branding
Default trust screens out of the box Full control over UX and layout
Built-in Android auto-return (1.0.9+) Minimal dependencies

Install #

dart pub add shernova_core:^2.0.0 shernova_ui:^2.0.0
# or during CLI setup:
dart run shernova_cli setup --with-ui

Usage #

import 'package:shernova_core/shernova_core.dart';
import 'package:shernova_ui/shernova_ui.dart';

await Shernova.init(ShernovaConfig(
  appId: 'YOUR_APP_ID',
  publishableKey: 'pk_live_...',
  apiBaseUrl: 'https://api.shernova.com',
  packageName: 'com.example.app',
  sha256: 'YOUR_APP_SHA256',
));

final session = await verifyPhone(
  context: context,
  phoneNumber: '+201012345678',
);

afterVerified hook #

Run backend registration while a progress overlay stays visible:

final session = await verifyPhone(
  context: context,
  phoneNumber: '+201012345678',
  afterVerified: (session) async {
    final receipt = await Shernova.getReceipt(session.sessionId);
    await myBackend.completeSignup(receipt: receipt);
  },
);
0
likes
130
points
781
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Optional UI components for Shernova phone verification.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, shernova_core, url_launcher

More

Packages that depend on shernova_ui

Packages that implement shernova_ui