klarna_mobile_sdk_flutter 1.0.1 klarna_mobile_sdk_flutter: ^1.0.1 copied to clipboard
Klarna's Flutter wrapper library for the native Klarna Mobile SDK
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add klarna_mobile_sdk_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
klarna_mobile_sdk_flutter: ^1.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:klarna_mobile_sdk_flutter/klarna_environment.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_mobile_sdk_error.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_post_purchase_error.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_post_purchase_event_listener.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_post_purchase_render_result.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_post_purchase_sdk.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_region.dart';
import 'package:klarna_mobile_sdk_flutter/klarna_resource_endpoint.dart';