flutter_cue_light_show_sdk 1.1.2 copy "flutter_cue_light_show_sdk: ^1.1.2" to clipboard
flutter_cue_light_show_sdk: ^1.1.2 copied to clipboard

Cue Light Show

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('CUE Plugin'),
        ),
        body: Column(
          children: <Widget>[
            TextButton(
              child: const Text('Fetch Theme'),
              onPressed: () async {
                try {
                  await FlutterCueLightShowSdk.fetchTheme();
                } catch (e) {
                  print(e);
                }
              },
            ),
            TextButton(
              child: const Text('Launch CUE'),
              onPressed: () async {
                try {
                  await FlutterCueLightShowSdk.launchCue();
                } catch (e) {
                  print(e);
                }
              },
            ),
          ],
        ),
      ),
    );
  }
}
4
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Cue Light Show

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_cue_light_show_sdk