huddle01_flutter_client 1.0.0 copy "huddle01_flutter_client: ^1.0.0" to clipboard
huddle01_flutter_client: ^1.0.0 copied to clipboard

The Huddle01 Flutter SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.

example/lib/main.dart

import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:huddle01_flutter_client_example/screens/home_screen.dart';
import 'package:huddle01_flutter_client_example/utils/common.dart';

import 'constants/index.dart';

void main() async => runApp(const MainApp());

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Huddle01 Flutter Example App',
      theme: ThemeData(
        useMaterial3: true,
        fontFamily: 'Montserrat',
        brightness: Brightness.dark,
        primaryColor: primaryColor,
      ),
      home: const SplashScreen(),
    );
  }
}

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

  @override
  State<SplashScreen> createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  void initState() {
    screenReplacementTimer(
      context,
      2500,
      screen: const HomeScreen(),
    );
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Center(
          child: Image.asset('assets/images/blue_logo.png'),
        ),
        Positioned(
          bottom: 40,
          left: 0,
          right: 0,
          child: CachedNetworkImage(
            imageUrl: flutterLogo,
            width: 75,
            height: 25,
          ),
        )
      ],
    );
  }
}
4
likes
0
pub points
0%
popularity

Publisher

verified publisherhuddle01.com

The Huddle01 Flutter SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.

Homepage

License

unknown (license)

Dependencies

events2, fixnum, flutter, freezed, freezed_annotation, http, logger, mediasoup_engine, plugin_platform_interface, protobuf, web_socket_channel

More

Packages that depend on huddle01_flutter_client