feat: update to v5
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user