BrainBit for developers Subscribe for updates Visit website

Flutter

The latest version is `1.0.14`.

Samples for BrainBit

Flutter standalone page: Link

Supported platforms:

- Android

- Windows

- MacOS

- iOS

 

Run this command with Flutter:

 

    
$ flutter pub add neurosdk2
    

 

 

Or install it manually:

  1. Add package to dependencies:
        
    dependencies:
      neurosdk2: ^1.0.13
        
    
  2. Run `flutter pub get` command

Then use it in your Dart code:

    
import 'package:neurosdk2/neurosdk2.dart';
    

SDK uses a runtime permission to Bluetooth and location, so you need to ask user about it.

 For iOS/MacOS the package should be linked as a static library, for this you need to remove the build flag (`use_frameworks!`) to dynamic library in the Podfile of your project:

    
target 'Runner' do
  # use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end