Skip to content

Commit fbb6cb3

Browse files
committed
v 0.4.0
1 parent 92ff470 commit fbb6cb3

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@
3838
* encrypt user access token
3939

4040
## 0.2.5
41-
* support android 12
41+
* support android 12
42+
43+
## 0.4.0
44+
*change from getx to bloc state management new design and more ...

lib/src/utils/v_chat_widgets_builder.dart

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class VChatWidgetBuilder {
1515
}
1616

1717
Color sendButtonColor(BuildContext context, bool isDark) {
18-
return Theme.of(context).primaryColor;
18+
return isDark ? Colors.red : Colors.blue;
1919
}
2020

2121
Widget senderTextMessageWidget(BuildContext context, String text) {
@@ -42,9 +42,9 @@ class VChatWidgetBuilder {
4242
trimExpandedText: "show Less",
4343
moreStyle: Theme.of(context)
4444
.textTheme
45-
.bodyText2!
46-
.copyWith(color: Colors.black, fontWeight: FontWeight.bold),
47-
style: Theme.of(context).textTheme.subtitle2,
45+
.bodyText1!
46+
.copyWith(fontWeight: FontWeight.bold),
47+
style: Theme.of(context).textTheme.bodyText1,
4848
),
4949
),
5050
);
@@ -74,9 +74,9 @@ class VChatWidgetBuilder {
7474
trimExpandedText: "show Less",
7575
moreStyle: Theme.of(context)
7676
.textTheme
77-
.bodyText2!
78-
.copyWith(color: Colors.black, fontWeight: FontWeight.bold),
79-
style: Theme.of(context).textTheme.subtitle2,
77+
.bodyText1!
78+
.copyWith(fontWeight: FontWeight.bold),
79+
style: Theme.of(context).textTheme.bodyText1,
8080
),
8181
),
8282
);
@@ -96,7 +96,7 @@ class VChatWidgetBuilder {
9696
),
9797
Icon(
9898
Icons.play_circle,
99-
color: isDark ? Colors.white54 : Theme.of(context).primaryColor,
99+
color: isDark ? Colors.white54 : Colors.blue,
100100
size: 30,
101101
),
102102
const SizedBox(
@@ -109,7 +109,7 @@ class VChatWidgetBuilder {
109109
AudioWave(
110110
height: 32,
111111
animation: false,
112-
width: MediaQuery.of(context).size.width/2,
112+
width: MediaQuery.of(context).size.width / 2,
113113
spacing: 3,
114114
bars: [
115115
AudioWaveBar(height: 10, color: Colors.lightBlueAccent),
@@ -144,7 +144,7 @@ class VChatWidgetBuilder {
144144
return Container(
145145
decoration: BoxDecoration(
146146
borderRadius: BorderRadius.circular(20),
147-
color: isDark ? Colors.black26 :Colors.blueGrey[100],
147+
color: isDark ? Colors.black26 : Colors.blueGrey[100],
148148
),
149149
height: 40,
150150
child: Row(
@@ -154,7 +154,7 @@ class VChatWidgetBuilder {
154154
),
155155
Icon(
156156
Icons.play_circle,
157-
color:Colors.red,
157+
color: Colors.red,
158158
size: 30,
159159
),
160160
const SizedBox(
@@ -167,7 +167,7 @@ class VChatWidgetBuilder {
167167
AudioWave(
168168
height: 32,
169169
animation: false,
170-
width: MediaQuery.of(context).size.width/2,
170+
width: MediaQuery.of(context).size.width / 2,
171171
spacing: 3,
172172
bars: [
173173
AudioWaveBar(height: 10, color: Colors.lightBlueAccent),
@@ -212,7 +212,7 @@ class VChatWidgetBuilder {
212212
Icon(
213213
Icons.insert_drive_file_outlined,
214214
size: 40,
215-
color: isDark ? Colors.white54 : Theme.of(context).primaryColor,
215+
color: isDark ? Colors.white54 : Colors.blue,
216216
),
217217
const SizedBox(
218218
width: 5,
@@ -234,14 +234,14 @@ class VChatWidgetBuilder {
234234
final isDark = Theme.of(context).brightness == Brightness.dark;
235235
return RoundedContainer(
236236
height: 75,
237-
color: isDark ? Colors.black26 : Colors.blueGrey[100] ,
237+
color: isDark ? Colors.black26 : Colors.blueGrey[100],
238238
borderRadius: BorderRadius.circular(20),
239239
child: Row(
240240
children: [
241241
const SizedBox(
242242
width: 25,
243243
),
244-
Icon(
244+
Icon(
245245
Icons.insert_drive_file_outlined,
246246
size: 40,
247247
color: isDark ? Colors.white54 : Colors.red,
@@ -253,7 +253,10 @@ class VChatWidgetBuilder {
253253
child: Column(
254254
mainAxisAlignment: MainAxisAlignment.center,
255255
crossAxisAlignment: CrossAxisAlignment.start,
256-
children: [fileName.b2.size(13.4).maxLine(1).overflowEllipsis, fileSize.cap],
256+
children: [
257+
fileName.b2.size(13.4).maxLine(1).overflowEllipsis,
258+
fileSize.cap
259+
],
257260
),
258261
)
259262
],

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: v_chat_sdk
22
description: official sdk for vchat to impement chat system into new or exist flutter app
3-
version: 0.3.0
3+
version: 0.4.0
44
homepage: https://github.com/hatemragab/v_chat_sdk
55

66
environment:

0 commit comments

Comments
 (0)