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

Camera Plugin for RealWear HMT-1(Z1)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rw_camera/rw_camera.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('Camera plugin for RealWear HMT-1(Z1) example app'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              RaisedButton(
                child: const Text('Take Photo'),
                onPressed: () async {
                  await RwCamera.takePhotoToFile();
                },
              ),
              RaisedButton(
                child: const Text('Record Video'),
                onPressed: () async {
                  await RwCamera.recordVideo();
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Camera Plugin for RealWear HMT-1(Z1)

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on rw_camera