reflection_effect 1.0.3
reflection_effect: ^1.0.3 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 . It's perfect for adding a touch of ele [...]
import 'package:flutter/material.dart';
import 'package:reflection_effect/reflection_effect.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Example Reflection Widget',
home: Scaffold(
body: Stack(
children: [
Center(child: Image.asset('images/backgraund.png')),
const Center(
child: Reflection(
negativeSpace: 30,
child: Text('Hello World',
style: TextStyle(
fontSize: 40, color: Color.fromARGB(255, 15, 35, 90))),
),
),
],
),
),
);
}
}