mindbox 2.11.0 copy "mindbox: ^2.11.0" to clipboard
mindbox: ^2.11.0 copied to clipboard

Flutter Mindbox SDK. Plugin wrapper over of Mindbox iOS/Android SDK.

example/lib/main.dart

import 'dart:async';

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _sdkVersion = "";

  @override
  void initState() {
    super.initState();
    getSdkVersion();
  }

  Future<void> getSdkVersion() async {
    String sdkVersion = await Mindbox.instance.nativeSdkVersion;

    if (!mounted) return;

    setState(() {
      _sdkVersion = sdkVersion;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Mindbox SDK example app'),
        ),
        body: Center(
          child: Text('Running on: $_sdkVersion'),
        ),
      ),
    );
  }
}
11
likes
150
points
3.7k
downloads

Publisher

verified publishermindbox.ru

Weekly Downloads

Flutter Mindbox SDK. Plugin wrapper over of Mindbox iOS/Android SDK.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

unknown (license)

Dependencies

flutter, mindbox_android, mindbox_ios, mindbox_platform_interface

More

Packages that depend on mindbox