fix(example): Adjust example to changes
This commit is contained in:
parent
d4a972e073
commit
b49658784b
@ -5,7 +5,7 @@ import 'package:moxxmpp/moxxmpp.dart';
|
||||
import 'package:moxxmpp_socket_tcp/moxxmpp_socket_tcp.dart';
|
||||
|
||||
class ExampleTcpSocketWrapper extends TCPSocketWrapper {
|
||||
ExampleTcpSocketWrapper() : super(false);
|
||||
ExampleTcpSocketWrapper() : super();
|
||||
|
||||
@override
|
||||
Future<List<MoxSrvRecord>> srvQuery(String domain, bool dnssec) async {
|
||||
@ -64,7 +64,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
// The below causes the app to crash.
|
||||
//ExampleTcpSocketWrapper(),
|
||||
// In a production app, the below should be false.
|
||||
TCPSocketWrapper(true),
|
||||
TCPSocketWrapper(),
|
||||
);
|
||||
TextEditingController jidController = TextEditingController();
|
||||
TextEditingController passwordController = TextEditingController();
|
||||
|
Loading…
Reference in New Issue
Block a user