Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ update dependencies #169

Merged
merged 1 commit into from
May 20, 2024
Merged
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
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
28 changes: 21 additions & 7 deletions lib/src/widgets/emoji_picker_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ class EmojiPickerWidget extends StatelessWidget {

@override
Widget build(BuildContext context) {
final size = MediaQuery.sizeOf(context);
return Container(
padding: const EdgeInsets.only(top: 10, left: 15, right: 15),
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
),
height: MediaQuery.of(context).size.height / 2,
height: size.height * 0.6,
width: size.width,
child: Column(
children: [
Container(
Expand All @@ -60,12 +62,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