finik_sdk 0.0.6 copy "finik_sdk: ^0.0.6" to clipboard
finik_sdk: ^0.0.6 copied to clipboard

This Flutter package allows your application to integrate Finik application features.

example/lib/main.dart

import 'package:finik_sdk/finik_sdk.dart';
import 'package:flutter/material.dart';

void main() async {
  /// Required!
  /// Configure Averspay SDK
  await FinikSdkConfig.configure(
    apiKey: '<YOUR_API_KEY>',
    cachePolicy: CachePolicy.networkOnly,
    isBeta: false,
  );

  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Finik QR demo',
      home: QrCodePage(
        accountId: '<YOUR_ACCOUNT_ID>',
        languageCode: 'ru', // Localizations ky, en, ru. (KYRGYZ, ENGLISH, RUSSIAN)
        onBackPressed: () => debugPrint('onBackPressed'),
      ),
    );
  }
}