adv_camera 1.1.2+1 copy "adv_camera: ^1.1.2+1" to clipboard
adv_camera: ^1.1.2+1 copied to clipboard

outdated

An advanced camera with features

example/lib/main.dart

import 'dart:io';

import 'package:adv_camera/adv_camera.dart';
import 'package:adv_camera_example/camera.dart';
import 'package:flutter/material.dart';

void main() {
  String id = DateTime.now().toIso8601String();
  print("id => $id");
  runApp(MaterialApp(home: MyApp(id: id)));
}

class MyApp extends StatefulWidget {
  final String id;

  const MyApp({Key key, this.id}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home'),
      ),
      body: Center(child: Text('testing camera')),
      floatingActionButton: FloatingActionButton(
          heroTag: "test3",
          child: Icon(Icons.camera),
          onPressed: () {
            Navigator.push(context,
                MaterialPageRoute(builder: (BuildContext context) {
                  String id = DateTime.now().toIso8601String();
                  print("id => $id");
                  return CameraApp(id: id);
                }));
          }),
    );
  }
}
46
likes
0
pub points
75%
popularity

Publisher

unverified uploader

An advanced camera with features

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on adv_camera