Stream Chat error Futter
$10-30 USD
Paguhet në dorëzim
i someone to fix the last dart im having problem with - i created a in app chat with sream chat
code
import 'dart:js';
import 'package:flutter/[login to view URL]';
import 'package:stream_chat_flutter/[login to view URL]';
import 'package:thebibleapp/pages/[login to view URL]';
class FriendsChat extends StatefulWidget {
@override
State<FriendsChat> createState() => _FriendsChatState();
}
class _FriendsChatState extends State<FriendsChat> {
final _keyChannels = GlobalKey<ChannelsBlocState>();
Future<void> _onCreateChannel() async{
final result = await showDialog
(context:context, builder: (context){
final channelController = TextEditingController();
return AlertDialog(
title: Text('Create Channel'),
content: Column(
mainAxisSize: [login to view URL],
children: [
TextField(
controller: channelController,
decoration: InputDecoration(
hintText: 'Channel Name',
),
),
ElevatedButton(
onPressed: () => [login to view URL](context).pop([login to view URL]),
),
],
),
);
});
if(result !=null){
final client = [login to view URL](context).client;
final channel = [login to view URL]('messaging',
id: result,
extraData: {
'image ': [login to view URL](),
});
await [login to view URL]();
[login to view URL]();
}
}
@override
Widget build(BuildContext context)
{
return Scaffold(
appBar: AppBar(
title: Text('Public Chat'),
),
body: RefreshIndicator(
onRefresh: [login to view URL],
child: StreamChannelListView(
controller: channelController,
onChannelTap: (channel) => [login to view URL](
context,
MaterialPageRoute(
builder: (_) => StreamChannel(
channel: channel,
child: const channelController(),
),
),
);
}
ID Projekti: #34344414
Rreth projektit
6 profesionistë freelancer dërguan një ofertë mesatare prej $36 për këtë punë
Hi I can help you with the code. can you tell me what is the error you are getting, so I can help you with it. Thank you Suresh
Hi there, hope you are doing good. I have read all your requirements avidly. I can fix this problem in a first go. It is a easy task to counter with. Lets discuss it in a chat. Regards, Ismail R.
Greeting! Let's correct the error now I have just carefully reviewed the project details. It seems very easy to me. That you need to modify the error in the code and I am very confident that it will reach your expectat Më shumë