Giter VIP home page Giter VIP logo

simple_shadow's Introduction

simple_shadow

A customizable shadow for any widget

Getting Started

import:

import 'package:simple_shadow/simple_shadow.dart';

example:

SimpleShadow(
    child: Image.asset('images/bird.png'),
    opacity: 0.6,         // Default: 0.5
    color: Colors.blue,   // Default: Black
    offset: Offset(5, 5), // Default: Offset(2, 2)
    sigma: 7,             // Default: 2
)

Default

Color: Colors.blue

Opacity: 1

Sigma: 10

Offset: Offset(10, 10)

simple_shadow's People

Contributors

marcelopmont avatar zvikarp avatar northonbarbosa avatar

Stargazers

 avatar victorshx avatar  avatar Song Yang avatar bruce3x avatar narakai avatar Hugo avatar  avatar Hugo Taschet avatar Suresh K avatar kthecoder avatar BigOne avatar  avatar Ruslan Hasanov avatar David Miguel Lozano avatar Serhii Chebanenko avatar Yasir Malik avatar KangHo Lee avatar  avatar Flutter Tutorial Admin avatar aytunc avatar  avatar Hüzeyfe TAŞ avatar 周嘉 avatar Sébastien Bel avatar Alexander Makarov avatar  avatar ChangJo avatar  avatar Manikanta Gade avatar Mohammad Jamalianpour avatar Levi Siebra avatar Mehdi Amiri avatar Jeffrey Hu avatar dddrop avatar mono — Masayuki Ono avatar Omid Raha avatar

Watchers

James Cloos avatar  avatar  avatar

simple_shadow's Issues

Last Flutter Update Broken the Package

Hello!
Since the last Flutter update, the shadow isn't working anymore.
I tried to figure out what has happened, but I couldn't.
Did you have a chance to check it out?

Add a permissive license

Would it be possible to add a permissive license like MIT or BSD to the repo? By the way, love your project!

ListView's shadow not scrolling with the content

Sadly I cant use this package, as the shadows are not scrolling with the ListView when a ListView is used as a child of SimpleShadow. I know this is a very specific use-case but there is currently no package that achieves this effect.

With Flutter 3.7.0 the shadow moves very far from the object

It seems like the Offset property isn't working properly on Flutter 3.7.0. It moves very far away from the container, but if you do a hot reload it will come back to where it is supposed to be. Its strange behavior, sometimes there on initial load then fixes it self with reloads

Shadow is filled even when the child widget is hollow

First of all thank you for this nice package.

I have a svg widget which is like a circle outline (so empty in the inside)
When I use simple_shadow, the shadow is not an outline but it is filled in with grey color all the way.
this makes my circle child show the shadow through it's hole.
Is there a way to make the shadow the exact same shape as the widget without filling the insides?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.