flutter_shine.dart icon indicating copy to clipboard operation
flutter_shine.dart copied to clipboard

why boxShadows is null?

Open fireknight opened this issue 5 years ago • 2 comments

` IndexedStack(

        index: _tabIndex,
        children: <Widget>[
      FlutterShine(
      config: Config(shadowColor: Color(0xFF3498D8),blur: 35,blurPow:1),
    light: Light(intensity: 1,position:Point(0,0)),
    builder: (BuildContext context, ShineShadow shineShadow) {
      print("shineShadow=$shineShadow");
      return
        Container(
            width: double.infinity,
            height: 300,
            decoration: BoxDecoration(
                color: Colors.white, boxShadow: shineShadow.boxShadows),);})
        ],
      )

`

The getter 'boxShadows' was called on null. Receiver: null Tried calling: boxShadows

fireknight avatar Mar 30 '20 10:03 fireknight

Can you try to remove config and light values? And see what happens in this case.

JonathanMonga avatar Mar 31 '20 16:03 JonathanMonga

@JonathanMonga Hi! I have same issue with text. If I remove config and light values, no errors are thrown. But I need custom settings. Is there any fix for this?

webmarket7 avatar Aug 14 '20 13:08 webmarket7