Coder Social home page Coder Social logo

johynpapin / flutter_inset_shadow Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 6.0 329 KB

This package extends BoxShadow and BoxDecoration to support the inset property.

License: BSD 3-Clause "New" or "Revised" License

Dart 28.93% Kotlin 0.20% Swift 2.72% Objective-C 0.06% HTML 6.19% CMake 26.74% C++ 32.91% C 2.25%
box-shadow flutter inset-shadow

flutter_inset_shadow's People

Contributors

johynpapin avatar ksokolovskyi avatar vasilich6107 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flutter_inset_shadow's Issues

Cant use normal decoration Image

Hello there, I was having some issues with a container boxdecoration image showing up on one of my screens even though I use the exact same container code for every page. I recreated a duplicate page and started adding piece by piece and the problem occured when I have to Hide the boxDecoration and boxShadow from the material.dart in order for your plugin to take over.

   body: Container(
        decoration: const BoxDecoration(
          image: DecorationImage(
            image: AssetImage(
                'assets/images/curcuit_background-3.png'), // TODO not showing image
            fit: BoxFit.cover,
          ),
        ),

This is the snippet I use for the page background. I am using youre inset for a timer button on the screen but I need to be able to have both a background image as well as the inset button on the same page.

Any suggestions?

Blocky gradients on iOS devices when new Flutter Impeller rendering engine enabled

With Impeller enabled on iOS, rendering of gradients is blocky does not look good. It's fine if Impeller is disabled. This has only been seen when using the Inset property. Other gradients throughout Flutter seem fine.

https://github.com/flutter/flutter/wiki/Impeller

The issue is seen when using settings such as this:

BoxDecoration(boxShadow: [BoxShadow(blurRadius: 20, spreadRadius: 40, color: fillColor, inset: true)]))

Shadow not rendering on web in a mobile layout

I have inset shadows that render fine in web, as long as the layout is "desktop" like.
When I either open it on my phone or when I use the debugger in web to force it into a mobile layout the shadows disappear entirely.
I have no clue what could be causing this, any thoughts?

Inset on multiple widget is expensive

Hi, i am using this package in order to create a Neumorphic page.
Currently i have 7 neumorphic buttons in a Row.
The row is shown/hidden by an AnimatedCrossFade
When i have to show the buttons the Raster goes crazy for some frames, but then if i setState the page everything is smooth (i added a RepaintBoundary)
I played a bit and found out that the lag is caused by the 'inset' attribute on the BoxShade Widget.
By commenting that out everything is smooth and not laggy.
Is there any workaround for this?

Shadows with opacity are not applied

I add opacity to the shadow color but it tints without opacity. Can you help with this issue?


Container(
      width: width,
      height: height,
      padding: padding,
      decoration: BoxDecoration(
        boxShadow: [
          BoxShadow(
            offset: Offset.fromDirection(4, 4) ,
            color: Colors.black.withOpacity(.05),
            blurRadius: 0,
            spreadRadius: 10,
            inset: true,
          ),
        ],
      ),
      child: child,
    )

0c2f6cd9-5c50-4fae-9253-2949a00db6e7

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.