camera_filters 0.2.8 copy "camera_filters: ^0.2.8" to clipboard
camera_filters: ^0.2.8 copied to clipboard

This package will use camera with dynamic color list of filters, crop your image, text on image and change the text color.

example/lib/main.dart

import 'package:camera_filters/camera_filters.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

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

class _MyAppState extends State<MyApp> {
  late VideoPlayerController _videoPlayerController;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: CameraScreenPlugin(onDone: (value) {
          /// value returns the picture path you can save here or navigate to some screen
          print(value);
        },

            /// time limit for video in seconds
            videoTimeLimit: 10,


            /// value returns the video path you can save here or navigate to some screen
            onVideoDone: (value) {
          print(value);
        }

            /// profileIconWidget: , if you want to add profile icon on camera you can your widget here

            ///filterColor: ValueNotifier<Color>(Colors.transparent),  your first filter color when you open camera

            /// filters: [],
            ///you can pass your own list of colors like this List<Color> colors = [Colors.blue, Colors.blue, Colors.blue ..... Colors.blue]
            ///make sure to pass transparent color to first index so the first index of list has no filter effect
            ),
      ),
    );
  }
}
41
likes
130
pub points
80%
popularity

Publisher

unverified uploader

This package will use camera with dynamic color list of filters, crop your image, text on image and change the text color.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

camera, flutter, flutter_colorpicker, flutter_native_image, get_storage, google_fonts, image, image_cropper, path_provider, vector_math, video_player

More

Packages that depend on camera_filters