vi-k / bubble

Speech bubble for Flutter
BSD 2-Clause "Simplified" License
266 stars 57 forks source link

Elevation issue #17

Open boosey opened 4 years ago

boosey commented 4 years ago

This is a great widget. Easy to use. Great examples. However, I cannot get the elevation property to render. I am building a web app. I've tried different variations of providing the value. Here is my code and results.


return Bubble(
            margin: BubbleEdges.only(top: 5),
            elevation: 10,
            shadowColor: Colors.red[900],
            alignment: item.side == UtteranceSide.user
                ? Alignment.topRight
                : Alignment.topLeft,
            nip: item.side == UtteranceSide.user
                ? BubbleNip.rightTop
                : BubbleNip.leftTop,
            color: item.side == UtteranceSide.user ? Colors.green : Colors.blue,
            child: internalWidget,
          );```

![Results image] (https://user-images.githubusercontent.com/2569582/83526542-30e70c80-a4ac-11ea-8bd5-17c22ca912e8.png)
vi-k commented 3 years ago

Check again.