zego_effects_plugin 1.0.13 copy "zego_effects_plugin: ^1.0.13" to clipboard
zego_effects_plugin: ^1.0.13 copied to clipboard

zego effects plugin is a flutter plugin for zego effects sdk

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:zego_effects_plugin/zego_effects_plugin.dart';
import 'zego_effects_init_page.dart';

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ZegoEffectsExample',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  void initState() {
    super.initState();
    //
  }

  void onEnterEffectsPageBtnPressed() {
    Navigator.of(context)
        .push(MaterialPageRoute(builder: (BuildContext context) {
      return EffectsInitPage();
    }));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('ZegoEffectsExample'),
      ),
      body: SafeArea(
        child: Center(
          child: CupertinoButton(
            color: Color(0xff0e88eb),
            child: Text('Effects Camera'),
            onPressed: onEnterEffectsPageBtnPressed,
          ),
        ),
      ),
    );
  }
}
1
likes
0
pub points
73%
popularity

Publisher

verified publisherzego.im

zego effects plugin is a flutter plugin for zego effects sdk

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on zego_effects_plugin