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

outdated

A new Flutter project.

Camera Filters #

Realtime Camera Filters

Description #

Realtime Camera Filters with image crop, text on image , text color and emojis. You can user your own custom color list to change filters

Usage #

Example

To use this package:

    dependencies:
        flutter:
          sdk: flutter
        camera_filters: <latest-version>

ScreenShots #

1 4

2 3

Video #

pack

How to use #

    import 'package:camera_filters/camera_filters.dart';
    import 'package:flutter/material.dart';
    
    void main() {
      WidgetsFlutterBinding.ensureInitialized();
      runApp(MyApp());
    }
    
    class MyApp extends StatefulWidget {
      @override
      _MyAppState createState() => _MyAppState();
    }
    
    class _MyAppState extends State<MyApp> {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          home: Scaffold(
            appBar: AppBar(
              title: const Text('Camera'),
            ),
            body: CameraScreenPlugin(
              onDone: (value) {
                /// value returns the picture path you can save here or navigate to some screen
                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
            ),
          ),
        );
      }
    }