colorfilter_generator 0.0.8 copy "colorfilter_generator: ^0.0.8" to clipboard
colorfilter_generator: ^0.0.8 copied to clipboard

Collection of ColorFilter matrices that can be used with ColorFiltered and generator to create custom color filters.

example/main.dart

import 'package:flutter/material.dart';
import 'package:colorfilter_generator/addons.dart';

void main() {
  runApp(
    const MaterialApp(
      home: MyApp(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('ColorFilter Example'),
      ),
      body: Center(
        child: ColorFiltered(
          colorFilter: ColorFilter.matrix(
            ColorFilterAddons.brightness(0.4),
          ),
          child: Column(
            children: [
              const Text('Some text with filter applied'),
              Image.network('https://example.com/path/to/image.png'),
            ],
          ),
        ),
      ),
    );
  }
}
16
likes
140
pub points
92%
popularity

Publisher

verified publisherensorta.com

Collection of ColorFilter matrices that can be used with ColorFiltered and generator to create custom color filters.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, matrix2d

More

Packages that depend on colorfilter_generator