Skip to content

Commit

Permalink
commit AkashDivya#5
Browse files Browse the repository at this point in the history
* removed slimeColor
  • Loading branch information
OmarHosamCodes committed Dec 3, 2023
1 parent 035dfca commit 1f9d2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/slimy_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class SlimyCard extends StatefulWidget {
final void Function()? onTap;
final Color arrowColor;
final Color arrowContainerColor;
final Color slimeColor;

SlimyCard({
this.color = const Color(0xff5858FF),
Expand All @@ -51,7 +50,6 @@ class SlimyCard extends StatefulWidget {
this.onTap,
this.arrowColor = const Color.fromRGBO(0, 0, 0, 1),
this.arrowContainerColor = const Color.fromRGBO(255, 255, 255, 1),
this.slimeColor = const Color(0xff5858FF),
}) : assert(topCardHeight >= 150, 'Height of Top Card must be atleast 150.'),
assert(bottomCardHeight >= 100,
'Height of Bottom Card must be atleast 100.'),
Expand Down Expand Up @@ -190,7 +188,7 @@ class _SlimyCardState extends State<SlimyCard> with TickerProviderStateMixin {
Container(
child: FlareActor(
'packages/slimy_card/assets/flare/bottomSlime.flr',
color: widget.slimeColor
color: widget.color
.withOpacity((widget.slimeEnabled) ? 1 : 0),
animation: activeAnimation,
sizeFromArtboard: true,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: slimy_card
description: It provides a beautiful slime-like animation of a Card that separates into two.
version: 1.1.1
version: 1.1.2
homepage: https://github.com/AkashDivya/SlimyCard-Animated-Flutter-Project

environment:
Expand Down

0 comments on commit 1f9d2f1

Please sign in to comment.