connatix_player_sdk_flutter 1.4.6 copy "connatix_player_sdk_flutter: ^1.4.6" to clipboard
connatix_player_sdk_flutter: ^1.4.6 copied to clipboard

Flutter bridge for native iOS/Android ConnatixPlayerSDK. This package is used to integrate both Elements and Playspace into a Flutter application.

example/lib/main.dart

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

class AppColors {
  static const Color background = Color.fromARGB(255, 255, 255, 255);
  static const Color mainBrand = Color.fromARGB(255, 0, 153, 255);
  static const Color secondaryBrand = Color.fromARGB(255, 13, 25, 45);
  static const Color lightText = Color.fromARGB(255, 255, 255, 255);
  static const Color darkText = Color.fromARGB(255, 0, 0, 0);
  static const Color border = Color.fromARGB(255, 204, 204, 204);
  static const Color hint = Color.fromARGB(255, 204, 204, 204);
}

void main() {
  runApp(
    SDKTestApp(
        home: const ConfigRoute(),
        theme: ThemeData(
            inputDecorationTheme: InputDecorationTheme(
              labelStyle:
                  const TextStyle(color: AppColors.darkText, fontSize: 14),
              hintStyle: const TextStyle(color: AppColors.hint, fontSize: 14),
              border: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(6),
                  borderSide: const BorderSide(color: AppColors.border)),
              focusedBorder: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(6),
                  borderSide: const BorderSide(color: AppColors.border)),
            ),
            elevatedButtonTheme: ElevatedButtonThemeData(
                style: ButtonStyle(
                    foregroundColor:
                        MaterialStateProperty.all(AppColors.lightText),
                    shape: MaterialStateProperty.all(RoundedRectangleBorder(
                        borderRadius: BorderRadius.circular(6))),
                    minimumSize:
                        MaterialStateProperty.all(const Size.fromHeight(50)),
                    backgroundColor:
                        MaterialStateProperty.all(AppColors.mainBrand),
                    textStyle: MaterialStateProperty.all(const TextStyle(
                        color: AppColors.lightText, fontSize: 14)))))),
  );
}

class SDKTestApp extends MaterialApp {
  const SDKTestApp({Key? key, Widget? home, ThemeData? theme})
      : super(key: key, home: home, theme: theme);
}
0
likes
160
points
131
downloads

Publisher

verified publisherconnatix.com

Weekly Downloads

Flutter bridge for native iOS/Android ConnatixPlayerSDK. This package is used to integrate both Elements and Playspace into a Flutter application.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on connatix_player_sdk_flutter