-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cb8882
commit 60daec6
Showing
17 changed files
with
111 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
final customChatDarkTheme = ThemeData.dark().copyWith(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
final customChatLightTheme = ThemeData( | ||
brightness: Brightness.light, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:v_chat_sdk/v_chat_sdk.dart'; | ||
|
||
/// override the widgets that you want to update it | ||
class VChatCustomWidgets extends VChatWidgetBuilder { | ||
@override | ||
Color sendButtonColor(BuildContext context, {required bool isDark}) { | ||
if (isDark) { | ||
return Colors.red; | ||
} else { | ||
return Colors.blue; | ||
} | ||
} | ||
|
||
// @override | ||
// Widget senderTextMessageWidget(BuildContext context, String text) { | ||
// return Container( | ||
// child: Text(text), | ||
// color: Colors.grey, | ||
// padding: EdgeInsets.all(20), | ||
// ); | ||
// } | ||
// | ||
// | ||
// @override | ||
// Widget receiverTextMessageWidget(BuildContext context, String text) { | ||
// final isDark = Theme.of(context).brightness == Brightness.dark; | ||
// return Container( | ||
// child: Text(text), | ||
// color:isDark?Colors.red: Colors.grey, | ||
// padding: EdgeInsets.all(20), | ||
// ); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
enum VChatNotificationType { | ||
none, | ||
firebase, | ||
onesignal | ||
} | ||
enum VChatNotificationType { none, firebase, onesignal } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.