Skip to content

Commit

Permalink
Example code migrated to null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
rwbr committed Apr 12, 2021
1 parent b23a37d commit 7be04e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The puropose of this package is it to show customizable chat bubbles. You can cu

```
dependencies:
flutter_basic_chat_bubble: ^0.0.1
flutter_basic_chat_bubble: ^0.2.0+2
```

### Install
Expand Down
3 changes: 2 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class BasicChatBubbleDemo extends StatelessWidget {
message: messages[index],
isMe: index % 2 ==
0, // Every second bubble has the isMe flag set to true
backgroundColor: index % 2 == 0 ? Colors.green[400] : Colors.blue,
backgroundColor:
(index % 2 == 0 ? Colors.green[400] : Colors.blue)!,
textColor: Colors.white,
buttonWidget: index == messages.length - 1
? InkWell(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
Expand Down

0 comments on commit 7be04e4

Please sign in to comment.