Skip to content

Commit

Permalink
⬆️ update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
apurva010 committed May 20, 2024
1 parent 4b4db9d commit 3057e39
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 28 deletions.
6 changes: 0 additions & 6 deletions lib/src/utils/emoji_parser.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';

import 'package:flutter/widgets.dart';
import 'package:http/http.dart' as http;

/// This is code is take from the https://github.com/petehouston/flutter-emoji/blob/master/lib/flutter_emoji.dart
/// All Credit of below class goes to @petehouston flutter_emoji
Expand Down Expand Up @@ -137,11 +136,6 @@ class EmojiParser {
_init(jsonEmoji);
}

Future<void> initServerData() async {
final response = await http.get(Uri.parse(emojiSource));
_init(response.body);
}

void _init(String dataset) {
Map<String, dynamic> mapEmojis = jsonDecode(dataset);
mapEmojis.forEach((k, v) {
Expand Down
5 changes: 4 additions & 1 deletion lib/src/values/typedefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ typedef VoidCallBackWithFuture = Future<void> Function();
typedef StringsCallBack = void Function(String emoji, String messageId);
typedef StringWithReturnWidget = Widget Function(String separator);
typedef DragUpdateDetailsCallback = void Function(DragUpdateDetails);
typedef MoreTapCallBack = void Function(Message message, bool sendByCurrentUser);
typedef MoreTapCallBack = void Function(
Message message,
bool sendByCurrentUser,
);
3 changes: 2 additions & 1 deletion lib/src/widgets/chat_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ class _ChatViewState extends State<ChatView>
assignReplyMessage: (message) => _sendMessageKey
.currentState
?.assignReplyMessage(message),
chatTextFieldTopPadding: widget.chatTextFieldTopPadding,
chatTextFieldTopPadding:
widget.chatTextFieldTopPadding,
);
},
),
Expand Down
27 changes: 20 additions & 7 deletions lib/src/widgets/emoji_picker_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class EmojiPickerWidget extends StatelessWidget {
color: Colors.white,
borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
),
height: MediaQuery.of(context).size.height / 2,
height: MediaQuery.of(context).size.height / 1.5,
width: MediaQuery.of(context).size.width,
child: Column(
children: [
Container(
Expand All @@ -60,12 +61,24 @@ class EmojiPickerWidget extends StatelessWidget {
onEmojiSelected: (Category? category, Emoji emoji) =>
onSelected(emoji.emoji),
config: Config(
columns: 7,
emojiSizeMax: 32 * ((!kIsWeb && Platform.isIOS) ? 1.30 : 1.0),
initCategory: Category.RECENT,
bgColor: Colors.white,
recentTabBehavior: RecentTabBehavior.NONE,
recentsLimit: 28,
emojiViewConfig: EmojiViewConfig(
columns: 7,
emojiSizeMax: 32 * ((!kIsWeb && Platform.isIOS) ? 1.30 : 1.0),
recentsLimit: 28,
backgroundColor: Colors.white,
),
searchViewConfig: const SearchViewConfig(
buttonIconColor: Colors.black,
),
categoryViewConfig: const CategoryViewConfig(
initCategory: Category.RECENT,
recentTabBehavior: RecentTabBehavior.NONE,
),
bottomActionBarConfig: const BottomActionBarConfig(
backgroundColor: Colors.white,
buttonIconColor: Colors.black,
buttonColor: Colors.white,
),
),
),
),
Expand Down
19 changes: 6 additions & 13 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,23 @@ repository: https://github.com/SimformSolutionsPvtLtd/flutter_chatview
platforms:
android:
ios:
linux:
macos:
web:
windows:

environment:
sdk: '>=3.0.3 <4.0.0'
flutter: '>=3.10.3'

dependencies:
flutter:
sdk: flutter
grouped_list: ^5.1.2
intl: ^0.19.0
flutter_linkify: ^6.0.0
url_launcher: ^6.1.7
emoji_picker_flutter: ^1.6.0
http: ^1.1.0
html: ^0.15.1
any_link_preview: ^3.0.0
progress_indicators: ^1.0.0
url_launcher: ^6.1.14
emoji_picker_flutter: ^2.1.1
any_link_preview: ^3.0.1
image_picker: '>=0.8.9 <2.0.0'
audio_waveforms: ^1.0.1
audio_waveforms: ^1.0.5
# For formatting time locale in message receipts
timeago: ^3.4.0
timeago: ^3.6.1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 3057e39

Please sign in to comment.