Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions lib/bubbles/bubble_normal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
Expand All @@ -50,23 +56,23 @@ class BubbleNormal extends StatelessWidget {
stateIcon = Icon(
Icons.done,
size: 18,
color: Color(0xFF97AD8E),
color: sentIconColor,
);
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
color: deliveredIconColor,
);
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF92DEDA),
color: seenIconColor,
);
}

Expand Down
13 changes: 10 additions & 3 deletions lib/bubbles/bubble_special_one.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
Expand All @@ -44,26 +50,27 @@ class BubbleSpecialOne extends StatelessWidget {
stateIcon = Icon(
Icons.done,
size: 18,
color: Color(0xFF97AD8E),
color: sentIconColor,
);
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
color: deliveredIconColor,
);
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF92DEDA),
color: seenIconColor,
);
}


return Align(
alignment: isSender ? Alignment.topRight : Alignment.topLeft,
child: Padding(
Expand Down
18 changes: 12 additions & 6 deletions lib/bubbles/bubble_special_three.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
Expand All @@ -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,
);
}

Expand Down
12 changes: 9 additions & 3 deletions lib/bubbles/bubble_special_two.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
Expand All @@ -44,23 +50,23 @@ class BubbleSpecialTwo extends StatelessWidget {
stateIcon = Icon(
Icons.done,
size: 18,
color: Color(0xFF97AD8E),
color: sentIconColor,
);
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
color: deliveredIconColor,
);
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF92DEDA),
color: seenIconColor,
);
}

Expand Down