camera_filters 0.1.5 camera_filters: ^0.1.5 copied to clipboard
This package will use camera with dynamic color list of filters, crop your image, text on image , change the text color and you can also use emojis. You can use your own custom color list to change fi [...]
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(
body: CameraScreenPlugin(onDone: (value) {
/// value returns the picture path you can save here or navigate to some screen
print(value);
},
/// 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
),
),
);
}
}