dart api work

This commit is contained in:
John Smith 2022-02-13 21:09:43 -05:00
parent cbf8f30b96
commit 125901fcd8
4 changed files with 113 additions and 85 deletions

View file

@ -30,7 +30,7 @@ class _MyAppState extends State<MyApp> {
// Platform messages may fail, so we use a try/catch PlatformException.
// We also handle the message potentially returning null.
try {
veilidVersion = await Veilid.api.veilidVersionString();
veilidVersion = Veilid.instance.veilidVersionString();
} on PlatformException {
veilidVersion = 'Failed to get veilid version.';
}