camera_recorder 1.0.1+2 copy "camera_recorder: ^1.0.1+2" to clipboard
camera_recorder: ^1.0.1+2 copied to clipboard

outdated

A package that uses a camera to record video and take pictures

example/lib/main.dart

import 'dart:developer';

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter EasyLoading',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
      builder: EasyLoading.init(),
    );
  }
}

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

  @override
  State<HomePage> createState() => _SplashPageState();
}

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

  @override
  Widget build(BuildContext context) {
    return Material(
      color: Theme.of(context).canvasColor,
      child: Center(
        child: TextButton(
            onPressed: () async {
              final AssetEntity? result =
                  await CameraView.showCameraView(context);
              log(result?.relativePath ?? '');
            },
            child: const Text('show camera')),
      ),
    );
  }
}
0
likes
0
pub points
3%
popularity

Publisher

unverified uploader

A package that uses a camera to record video and take pictures

Repository

License

unknown (license)

Dependencies

camera, cupertino_icons, ffmpeg_kit_flutter_min_gpl, flutter, flutter_easyloading, path, permission_handler, photo_manager, vibration, video_player

More

Packages that depend on camera_recorder