fix(example): Adjust example to changes

This commit is contained in:
PapaTutuWawa 2023-03-30 16:18:28 +02:00
parent d4a972e073
commit b49658784b

View File

@ -5,7 +5,7 @@ import 'package:moxxmpp/moxxmpp.dart';
import 'package:moxxmpp_socket_tcp/moxxmpp_socket_tcp.dart'; import 'package:moxxmpp_socket_tcp/moxxmpp_socket_tcp.dart';
class ExampleTcpSocketWrapper extends TCPSocketWrapper { class ExampleTcpSocketWrapper extends TCPSocketWrapper {
ExampleTcpSocketWrapper() : super(false); ExampleTcpSocketWrapper() : super();
@override @override
Future<List<MoxSrvRecord>> srvQuery(String domain, bool dnssec) async { 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. // The below causes the app to crash.
//ExampleTcpSocketWrapper(), //ExampleTcpSocketWrapper(),
// In a production app, the below should be false. // In a production app, the below should be false.
TCPSocketWrapper(true), TCPSocketWrapper(),
); );
TextEditingController jidController = TextEditingController(); TextEditingController jidController = TextEditingController();
TextEditingController passwordController = TextEditingController(); TextEditingController passwordController = TextEditingController();