1234567891011121314151617181920212223 |
- import 'dart:async';
- import 'dart:ffi';
- import 'dart:io';
- import 'package:ffi/ffi.dart';
- import 'package:flutter/services.dart';
- import 'generated_bindings.dart';
- Pointer<Int32> int32ListToArrayPointer(List<int> list) {
- final ptr = calloc<Int32>(list.length);
- ptr.asTypedList(list.length).setAll(0, list);
- return ptr;
- }
- class ShoesSdk {
- static const MethodChannel _channel = const MethodChannel('shoes_sdk');
- static Future<String> get platformVersion async {
- final String version = await _channel.invokeMethod('getPlatformVersion');
- return version;
- }
- }
|