beam_ai_sdk 0.1.1 copy "beam_ai_sdk: ^0.1.1" to clipboard
beam_ai_sdk: ^0.1.1 copied to clipboard

The beam_ai_sdk enables easy integration of advanced AI features like NLP, image recognition, speech processing, and ML for effortless creation of intelligent applications.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:beam_ai_sdk/beam_ai_sdk.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  final _beamAiSdkPlugin = BeamAiSdk();
  dynamic output;
  @override
  void initState() {
    super.initState();
  }

  Future<void> startBeam() async {
    String platformVersion;

    try {
      platformVersion =
          await _beamAiSdkPlugin.startBeamSdk() ?? 'Unknown platform version';
    } on PlatformException {
      platformVersion = 'Failed to get platform version.';
    }

    if (!mounted) return;

    setState(() {
      _platformVersion = platformVersion;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
            child: Column(children: [
          SizedBox(height: 20),
          Text("Start ${output}"),
          SizedBox(height: 20),
          ElevatedButton(
              onPressed: () {
                startBeam();
              },
              child: Text("Start Beam ")),
          SizedBox(
            height: 10,
          ),
          ElevatedButton(
              onPressed: () async {
                output = await _beamAiSdkPlugin.beamSdkOutput() ??
                    'Unknown platform version';
                print("-------------$output");
                setState(() {});
              },
              child: Text("Beam Output"))
        ])),
      ),
    );
  }
}
0
likes
0
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

The beam_ai_sdk enables easy integration of advanced AI features like NLP, image recognition, speech processing, and ML for effortless creation of intelligent applications.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on beam_ai_sdk