File tree Expand file tree Collapse file tree 2 files changed +1
-40
lines changed Expand file tree Collapse file tree 2 files changed +1
-40
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ import 'package:yaru/yaru.dart' as yaru;
1717void 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 (),
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments