Skip to content

Commit

Permalink
v 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemragab committed Nov 29, 2021
1 parent 92ff470 commit fbb6cb3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@
* encrypt user access token

## 0.2.5
* support android 12
* support android 12

## 0.4.0
*change from getx to bloc state management new design and more ...
35 changes: 19 additions & 16 deletions lib/src/utils/v_chat_widgets_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class VChatWidgetBuilder {
}

Color sendButtonColor(BuildContext context, bool isDark) {
return Theme.of(context).primaryColor;
return isDark ? Colors.red : Colors.blue;
}

Widget senderTextMessageWidget(BuildContext context, String text) {
Expand All @@ -42,9 +42,9 @@ class VChatWidgetBuilder {
trimExpandedText: "show Less",
moreStyle: Theme.of(context)
.textTheme
.bodyText2!
.copyWith(color: Colors.black, fontWeight: FontWeight.bold),
style: Theme.of(context).textTheme.subtitle2,
.bodyText1!
.copyWith(fontWeight: FontWeight.bold),
style: Theme.of(context).textTheme.bodyText1,
),
),
);
Expand Down Expand Up @@ -74,9 +74,9 @@ class VChatWidgetBuilder {
trimExpandedText: "show Less",
moreStyle: Theme.of(context)
.textTheme
.bodyText2!
.copyWith(color: Colors.black, fontWeight: FontWeight.bold),
style: Theme.of(context).textTheme.subtitle2,
.bodyText1!
.copyWith(fontWeight: FontWeight.bold),
style: Theme.of(context).textTheme.bodyText1,
),
),
);
Expand All @@ -96,7 +96,7 @@ class VChatWidgetBuilder {
),
Icon(
Icons.play_circle,
color: isDark ? Colors.white54 : Theme.of(context).primaryColor,
color: isDark ? Colors.white54 : Colors.blue,
size: 30,
),
const SizedBox(
Expand All @@ -109,7 +109,7 @@ class VChatWidgetBuilder {
AudioWave(
height: 32,
animation: false,
width: MediaQuery.of(context).size.width/2,
width: MediaQuery.of(context).size.width / 2,
spacing: 3,
bars: [
AudioWaveBar(height: 10, color: Colors.lightBlueAccent),
Expand Down Expand Up @@ -144,7 +144,7 @@ class VChatWidgetBuilder {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: isDark ? Colors.black26 :Colors.blueGrey[100],
color: isDark ? Colors.black26 : Colors.blueGrey[100],
),
height: 40,
child: Row(
Expand All @@ -154,7 +154,7 @@ class VChatWidgetBuilder {
),
Icon(
Icons.play_circle,
color:Colors.red,
color: Colors.red,
size: 30,
),
const SizedBox(
Expand All @@ -167,7 +167,7 @@ class VChatWidgetBuilder {
AudioWave(
height: 32,
animation: false,
width: MediaQuery.of(context).size.width/2,
width: MediaQuery.of(context).size.width / 2,
spacing: 3,
bars: [
AudioWaveBar(height: 10, color: Colors.lightBlueAccent),
Expand Down Expand Up @@ -212,7 +212,7 @@ class VChatWidgetBuilder {
Icon(
Icons.insert_drive_file_outlined,
size: 40,
color: isDark ? Colors.white54 : Theme.of(context).primaryColor,
color: isDark ? Colors.white54 : Colors.blue,
),
const SizedBox(
width: 5,
Expand All @@ -234,14 +234,14 @@ class VChatWidgetBuilder {
final isDark = Theme.of(context).brightness == Brightness.dark;
return RoundedContainer(
height: 75,
color: isDark ? Colors.black26 : Colors.blueGrey[100] ,
color: isDark ? Colors.black26 : Colors.blueGrey[100],
borderRadius: BorderRadius.circular(20),
child: Row(
children: [
const SizedBox(
width: 25,
),
Icon(
Icon(
Icons.insert_drive_file_outlined,
size: 40,
color: isDark ? Colors.white54 : Colors.red,
Expand All @@ -253,7 +253,10 @@ class VChatWidgetBuilder {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [fileName.b2.size(13.4).maxLine(1).overflowEllipsis, fileSize.cap],
children: [
fileName.b2.size(13.4).maxLine(1).overflowEllipsis,
fileSize.cap
],
),
)
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: v_chat_sdk
description: official sdk for vchat to impement chat system into new or exist flutter app
version: 0.3.0
version: 0.4.0
homepage: https://github.com/hatemragab/v_chat_sdk

environment:
Expand Down

0 comments on commit fbb6cb3

Please sign in to comment.