Skip to content

Commit 81c4188

Browse files
authored
Small WifiPage Fixes (#163)
1 parent 76003b1 commit 81c4188

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
lines changed

lib/main.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import 'package:yaru/yaru.dart' as yaru;
1717
void main() async {
1818
final themeSettings = GSettings(schemaId: schemaInterface);
1919

20-
/// connect the client here until I found another
21-
/// solution tied to its page
2220
final networkManagerClient = NetworkManagerClient();
2321
await networkManagerClient.connect();
2422

@@ -36,11 +34,7 @@ void main() async {
3634
create: (_) => HostnameService(),
3735
dispose: (_, service) => service.dispose(),
3836
),
39-
//HACK: not the right way to inject value with the provider , but that should help for now
40-
Provider<NetworkManagerClient>(
41-
create: (_) => networkManagerClient,
42-
dispose: (_, client) => client.close(),
43-
),
37+
Provider<NetworkManagerClient>.value(value: networkManagerClient),
4438
Provider<PowerProfileService>(
4539
create: (_) => PowerProfileService(),
4640
dispose: (_, service) => service.dispose(),

test/widget_test.dart

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)