mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-06-25 07:10:48 -04:00
dart api work
This commit is contained in:
parent
cbf8f30b96
commit
125901fcd8
4 changed files with 113 additions and 85 deletions
|
@ -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.';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue