feat: update to v5

This commit is contained in:
Gordon Hayes
2022-09-22 16:04:58 +02:00
parent c30d127327
commit 1dcad0555a
12 changed files with 96 additions and 22 deletions
@@ -244,7 +244,8 @@ class _ChannelList extends State<ChannelList> {
color: chatTheme.colorTheme.accentError,
),
onPressed: (_) async {
final res = await showConfirmationDialog(
final res =
await showConfirmationBottomSheet(
context,
title: 'Delete Conversation',
question:
@@ -186,10 +186,6 @@ class _ChannelMediaDisplayScreenState extends State<ChannelMediaDisplayScreen> {
attachment: media[position].attachment,
message: media[position].message,
showTitle: false,
size: Size(
MediaQuery.of(context).size.width * 0.8,
MediaQuery.of(context).size.height * 0.3,
),
messageTheme: widget.messageTheme,
),
)
@@ -339,7 +339,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
}
void _showDeleteDialog() async {
final res = await showConfirmationDialog(
final res = await showConfirmationBottomSheet(
context,
title: AppLocalizations.of(context).deleteConversationTitle,
okText: AppLocalizations.of(context).delete.toUpperCase(),
@@ -654,7 +654,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
width: 24.0,
),
onTap: () async {
final res = await showConfirmationDialog(
final res = await showConfirmationBottomSheet(
context,
title: AppLocalizations.of(context).leaveConversation,
okText: AppLocalizations.of(context).leave.toUpperCase(),
@@ -939,7 +939,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
size: 24.0,
),
AppLocalizations.of(context).removeFromGroup, () async {
final res = await showConfirmationDialog(
final res = await showConfirmationBottomSheet(
context,
title: AppLocalizations.of(context).removeMember,
okText:
+7 -4
View File
@@ -172,11 +172,14 @@ class _MyAppState extends State<MyApp>
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
builder: (context, child) => StreamChatTheme(
data: StreamChatThemeData(
brightness: Theme.of(context).brightness,
builder: (context, child) => StreamChatConfiguration(
data: StreamChatConfigurationData(),
child: StreamChatTheme(
data: StreamChatThemeData(
brightness: Theme.of(context).brightness,
),
child: child!,
),
child: child!,
),
onGenerateRoute: AppRoutes.generateRoute,
onGenerateInitialRoutes: (initialRouteName) {