Implemented first steps of the security layer, and dockerized as well.

This commit is contained in:
Joshua
2024-11-01 14:42:16 -06:00
committed by Violet Ash
parent 2c1ab4378c
commit 0d1012b539
13 changed files with 491 additions and 1 deletions
+16 -1
View File
@@ -4,6 +4,7 @@ import 'package:app/components/conversations_list_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:provider/provider.dart';
import 'package:network_tools/network_tools.dart';
import 'package:app/theme.dart';
@@ -57,9 +58,23 @@ class MyApp extends ConsumerWidget {
const Center(child: ConversationsListWidget()),
];
Future<void> test() async {
for (final ActiveHost activeHost in await MdnsScanner.searchMdnsDevices()) {
final MdnsInfo? mdnsInfo = await activeHost.mdnsInfo;
print('''
Address: ${activeHost.address}
Port: ${mdnsInfo!.mdnsPort}
ServiceType: ${mdnsInfo.mdnsServiceType}
MdnsName: ${mdnsInfo.getOnlyTheStartOfMdnsName()}
''');
// Do anything with the active host
}
}
// This widget is the root of your application.
@override
Widget build(BuildContext context, WidgetRef ref) {
Widget build(BuildContext context, WidgetRef ref) {o
final selectedIndex = ref.watch(selectedIndexProvider);
return MaterialApp(