Skip to content

Commit

Permalink
Fixes #2 priority order for message status tick
Browse files Browse the repository at this point in the history
  • Loading branch information
prahack committed Apr 26, 2021
1 parent bce2817 commit 7e8f810
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## [0.8.0+1] - 22/03/2020
## [0.8.1] - 26/04/2021

* set piority for message status tick (seen > delivered > sent)

## [0.8.0+1] - 22/03/2021

* Update README.md example.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add this to your package's `pubspec.yaml` file:

```yaml
dependencies:
chat_bubbles: ^0.8.0+1
chat_bubbles: ^0.8.1
```
## Usage
Expand Down
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class _MyHomePageState extends State<MyHomePage> {
text: 'bubble normal without tail',
color: Color(0xFFE2FFC7),
tail: false,
sent: true,
seen: true,
delivered: true,
),
BubbleSpecialOne(
text: 'bubble special one with tail',
Expand Down
6 changes: 4 additions & 2 deletions lib/bubbles/bubble_normal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ class BubbleNormal extends StatelessWidget {
size: 18,
color: Color(0xFF97AD8E),
);
} else if (delivered) {
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
);
} else if (seen) {
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
Expand Down
6 changes: 4 additions & 2 deletions lib/bubbles/bubble_special_one.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ class BubbleSpecialOne extends StatelessWidget {
size: 18,
color: Color(0xFF97AD8E),
);
} else if (delivered) {
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
);
} else if (seen) {
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
Expand Down
6 changes: 4 additions & 2 deletions lib/bubbles/bubble_special_two.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ class BubbleSpecialTwo extends StatelessWidget {
size: 18,
color: Color(0xFF97AD8E),
);
} else if (delivered) {
}
if (delivered) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
size: 18,
color: Color(0xFF97AD8E),
);
} else if (seen) {
}
if (seen) {
stateTick = true;
stateIcon = Icon(
Icons.done_all,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: chat_bubbles
description: Flutter chat bubble widgets, similar to Whatsapp and more shapes. Easy to use and implement
chat bubbles.
version: 0.8.0+1
version: 0.8.1
homepage: https://github.com/prahack/chat_bubbles

environment:
Expand Down

0 comments on commit 7e8f810

Please sign in to comment.