reflection_effect 2.0.0 copy "reflection_effect: ^2.0.0" to clipboard
reflection_effect: ^2.0.0 copied to clipboard

Reflectable is a Flutter package that provides a customizable widget designed to create a reflective effect on its child widget, is inspired by CSS box-reflect.

image

Reflection Effect #

A Flutter widget that reflects the content of a widget. This widget can be used to create mirror effects or to display information in a more visually appealing way.

Usage #

To use the Reflection widget, you first need to import it into your widget file:

import 'package:reflection_effect/reflection_effect.dart';

Once you have imported the widget, you can use it as follows:

Reflection( 
    child: Text('Hello World',
        style: TextStyle(fontSize: 30, color: Colors.blue)),
)

You can also change the reflection setting as follows:

    Reflection(
        settingReflection: SettingReflection(
            skewX: 0.2,
            scaleY: 0.5,
            opacity: 0.9,
            reflectionLength: 0.4,
            positionX: 0.2,
            expandRight: 10,
            below: -32,
        ),
        child: const Text('Hello World '),
    ),

2
likes
140
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Reflectable is a Flutter package that provides a customizable widget designed to create a reflective effect on its child widget, is inspired by CSS box-reflect.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on reflection_effect