invert_colors 0.0.4 copy "invert_colors: ^0.0.4" to clipboard
invert_colors: ^0.0.4 copied to clipboard

A lightweight widget that inverts the colors of its children.

Invert Colors #

A lightweight widget that inverts the colors of its children

Usage #

  1. Follow Installation Instructions

  2. Wrap around any widget

InvertColors(
    child: MyWidget(),
)

Invert HomePage:

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      title: 'Welcome to Flutter',
      home: InvertColors(
          child: Scaffold(
            appBar: AppBar(
                title: Text('Welcome to Flutter'),
            ),
            body: Center(
                child: Text('Hello World'),
            ),
        ),
      ),
    );
  }
}

The InvertColors widget can be used to invert any child.

15
likes
130
pub points
83%
popularity

Publisher

unverified uploader

A lightweight widget that inverts the colors of its children.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on invert_colors