diff --git a/lib/bubbles/bubble_normal.dart b/lib/bubbles/bubble_normal.dart index 4615a28..df179fd 100644 --- a/lib/bubbles/bubble_normal.dart +++ b/lib/bubbles/bubble_normal.dart @@ -22,6 +22,9 @@ class BubbleNormal extends StatelessWidget { final bool sent; final bool delivered; final bool seen; + final Color sentIconColor; + final Color deliveredIconColor; + final Color seenIconColor; final TextStyle textStyle; BubbleNormal({ @@ -34,6 +37,9 @@ class BubbleNormal extends StatelessWidget { this.sent = false, this.delivered = false, this.seen = false, + this.sentIconColor = const Color(0xFF97AD8E), + this.deliveredIconColor = const Color(0xFF97AD8E), + this.seenIconColor = const Color(0xFF92DEDA), this.textStyle = const TextStyle( color: Colors.black87, fontSize: 16, @@ -50,7 +56,7 @@ class BubbleNormal extends StatelessWidget { stateIcon = Icon( Icons.done, size: 18, - color: Color(0xFF97AD8E), + color: sentIconColor, ); } if (delivered) { @@ -58,7 +64,7 @@ class BubbleNormal extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF97AD8E), + color: deliveredIconColor, ); } if (seen) { @@ -66,7 +72,7 @@ class BubbleNormal extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF92DEDA), + color: seenIconColor, ); } diff --git a/lib/bubbles/bubble_special_one.dart b/lib/bubbles/bubble_special_one.dart index c33e72e..44cddcc 100644 --- a/lib/bubbles/bubble_special_one.dart +++ b/lib/bubbles/bubble_special_one.dart @@ -17,6 +17,9 @@ class BubbleSpecialOne extends StatelessWidget { final bool sent; final bool delivered; final bool seen; + final Color sentIconColor; + final Color deliveredIconColor; + final Color seenIconColor; final TextStyle textStyle; const BubbleSpecialOne({ @@ -28,6 +31,9 @@ class BubbleSpecialOne extends StatelessWidget { this.sent = false, this.delivered = false, this.seen = false, + this.sentIconColor = const Color(0xFF97AD8E), + this.deliveredIconColor = const Color(0xFF97AD8E), + this.seenIconColor = const Color(0xFF92DEDA), this.textStyle = const TextStyle( color: Colors.black87, fontSize: 16, @@ -44,7 +50,7 @@ class BubbleSpecialOne extends StatelessWidget { stateIcon = Icon( Icons.done, size: 18, - color: Color(0xFF97AD8E), + color: sentIconColor, ); } if (delivered) { @@ -52,7 +58,7 @@ class BubbleSpecialOne extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF97AD8E), + color: deliveredIconColor, ); } if (seen) { @@ -60,10 +66,11 @@ class BubbleSpecialOne extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF92DEDA), + color: seenIconColor, ); } + return Align( alignment: isSender ? Alignment.topRight : Alignment.topLeft, child: Padding( diff --git a/lib/bubbles/bubble_special_three.dart b/lib/bubbles/bubble_special_three.dart index 6e55eb6..8e2be0a 100644 --- a/lib/bubbles/bubble_special_three.dart +++ b/lib/bubbles/bubble_special_three.dart @@ -17,6 +17,9 @@ class BubbleSpecialThree extends StatelessWidget { final bool sent; final bool delivered; final bool seen; + final Color sentIconColor; + final Color deliveredIconColor; + final Color seenIconColor; final TextStyle textStyle; const BubbleSpecialThree({ @@ -28,6 +31,9 @@ class BubbleSpecialThree extends StatelessWidget { this.sent = false, this.delivered = false, this.seen = false, + this.sentIconColor = const Color(0xFF97AD8E), + this.deliveredIconColor = const Color(0xFF97AD8E), + this.seenIconColor = const Color(0xFF92DEDA), this.textStyle = const TextStyle( color: Colors.black87, fontSize: 16, @@ -41,26 +47,26 @@ class BubbleSpecialThree extends StatelessWidget { Icon? stateIcon; if (sent) { stateTick = true; - stateIcon = const Icon( + stateIcon = Icon( Icons.done, size: 18, - color: Color(0xFF97AD8E), + color: sentIconColor, ); } if (delivered) { stateTick = true; - stateIcon = const Icon( + stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF97AD8E), + color: deliveredIconColor, ); } if (seen) { stateTick = true; - stateIcon = const Icon( + stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF92DEDA), + color: seenIconColor, ); } diff --git a/lib/bubbles/bubble_special_two.dart b/lib/bubbles/bubble_special_two.dart index c4c0cf4..6d7c2d5 100644 --- a/lib/bubbles/bubble_special_two.dart +++ b/lib/bubbles/bubble_special_two.dart @@ -17,6 +17,9 @@ class BubbleSpecialTwo extends StatelessWidget { final bool sent; final bool delivered; final bool seen; + final Color sentIconColor; + final Color deliveredIconColor; + final Color seenIconColor; final TextStyle textStyle; const BubbleSpecialTwo({ @@ -28,6 +31,9 @@ class BubbleSpecialTwo extends StatelessWidget { this.sent = false, this.delivered = false, this.seen = false, + this.sentIconColor = const Color(0xFF97AD8E), + this.deliveredIconColor = const Color(0xFF97AD8E), + this.seenIconColor = const Color(0xFF92DEDA), this.textStyle = const TextStyle( color: Colors.black87, fontSize: 16, @@ -44,7 +50,7 @@ class BubbleSpecialTwo extends StatelessWidget { stateIcon = Icon( Icons.done, size: 18, - color: Color(0xFF97AD8E), + color: sentIconColor, ); } if (delivered) { @@ -52,7 +58,7 @@ class BubbleSpecialTwo extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF97AD8E), + color: deliveredIconColor, ); } if (seen) { @@ -60,7 +66,7 @@ class BubbleSpecialTwo extends StatelessWidget { stateIcon = Icon( Icons.done_all, size: 18, - color: Color(0xFF92DEDA), + color: seenIconColor, ); }