Skip to content

Commit 6aeeddb

Browse files
♻️ Refactor code.
1 parent 9bfc77f commit 6aeeddb

File tree

8 files changed

+2
-12
lines changed

8 files changed

+2
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [1.2.0]
1+
## [1.2.0+1]
22

33
* **Feat**: [42](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/42) Ability to
44
get callback on tap of profile circle avatar.

lib/src/controller/chat_controller.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import 'package:flutter/material.dart';
2626
import '../models/models.dart';
2727

2828
class ChatController {
29-
3029
/// Represents initial message list in chat which can be add by user.
3130
List<Message> initialMessageList;
3231
ScrollController scrollController;
@@ -43,11 +42,9 @@ class ChatController {
4342
/// Represents message stream of chat
4443
StreamController<List<Message>> messageStreamController = StreamController();
4544

46-
4745
/// Used to dispose stream.
4846
void dispose() => messageStreamController.close();
4947

50-
5148
/// Used to add message in message list.
5249
void addMessage(Message message) {
5350
initialMessageList.add(message);

lib/src/extensions/extensions.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import '../utils/constants.dart';
2727
import '../utils/emoji_parser.dart';
2828
import '../utils/package_strings.dart';
2929

30-
3130
/// Extension for DateTime to get specific formats of dates and time.
3231
extension TimeDifference on DateTime {
3332
String get getDay {
@@ -51,7 +50,6 @@ extension TimeDifference on DateTime {
5150
String get getTimeFromDateTime => DateFormat.Hm().format(this);
5251
}
5352

54-
5553
/// Extension on String which implements different types string validations.
5654
extension ValidateString on String {
5755
bool get isImageUrl {

lib/src/models/reply_message.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import '../values/enumaration.dart';
2323

2424
class ReplyMessage {
25-
2625
/// Provides reply message.
2726
final String message;
2827

lib/src/widgets/chat_groupedlist_widget.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ class _ChatGroupedListWidgetState extends State<ChatGroupedListWidget>
127127
}
128128

129129
void _initializeAnimation() {
130-
131130
// When this flag is on at that time only animation controllers will be
132131
// initialized.
133132
if (isEnableSwipeToSeeTime) {
@@ -239,7 +238,6 @@ class _ChatGroupedListWidgetState extends State<ChatGroupedListWidget>
239238
}
240239
}
241240

242-
243241
/// When user swipe at that time only animation is assigned with value.
244242
void _onHorizontalDrag(DragUpdateDetails details) {
245243
_slideAnimation = Tween<Offset>(

lib/src/widgets/chat_view_appbar.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class ChatViewAppBar extends StatelessWidget {
4444
this.showLeading = true,
4545
}) : super(key: key);
4646

47-
4847
/// Allow user to change colour of appbar.
4948
final Color? backGroundColor;
5049

lib/src/widgets/image_message_view.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class ImageMessageView extends StatelessWidget {
4040
this.highlightScale = 1.2,
4141
}) : super(key: key);
4242

43-
4443
/// Provides message instance of chat.
4544
final Message message;
4645

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: chatview
22
description: A Flutter package that allows you to integrate Chat View with highly customization options.
3-
version: 1.2.0
3+
version: 1.2.0+1
44
issue_tracker: https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues
55
repository: https://github.com/SimformSolutionsPvtLtd/flutter_chatview
66

0 commit comments

Comments
 (0)