chore: Add some logging to the example

This commit is contained in:
PapaTutuWawa 2022-07-28 12:14:59 +02:00
parent f966af223a
commit 67c0e01516

View File

@ -51,7 +51,9 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
Future<void> _query() async { Future<void> _query() async {
print("Performing query...");
final results = await MoxdnsPlugin.srvQuery("_xmpps-client._tcp.polynom.me", false); final results = await MoxdnsPlugin.srvQuery("_xmpps-client._tcp.polynom.me", false);
print("Done");
for (final r in results) { for (final r in results) {
print("- Target: ${r.target}"); print("- Target: ${r.target}");
print(" Port: ${r.port}"); print(" Port: ${r.port}");