flutterptzscontrol 1.1.5
flutterptzscontrol: ^1.1.5

Flutter Android iOS web

PTZ control widget used in a flutter version of video surveillance

example/lib/main.dart

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

void main() => runApp(MyApp());

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

class _MyAppState extends State<MyApp> {
  final double r0 = 50;
  final double r = 150;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('云台方向按钮widget'),
        ),
        body: Center(
          child: SizedBox(
            width: 2 * r,
            height: 2 * r,
            child: PtzsControlWidget(r0, r, (status) {
              print('status = $status');
            }),
          ),
        ),
      ),
    );
  }
}
3
likes
105
pub points
24%
popularity

PTZ control widget used in a flutter version of video surveillance

Homepage

Documentation

API reference

Uploader

505264099@qq.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutterptzscontrol