Rewrite the notification code in Kotlin

This commit is contained in:
PapaTutuWawa committed 2023-07-28 00:46:19 +02:00
1 parent 1771c0e1b6
commit 864b868f45
25 files changed
+318 -129

No files matched your search

+12
View File
@@ -175,6 +175,18 @@ class MyHomePage extends StatelessWidget {
},
child: const Text('Show messaging notification'),
),
ElevatedButton(
onPressed: () async {
print(await MoxplatformPlugin.platform.getPersistentDataPath());
},
child: const Text('Get data directory'),
),
ElevatedButton(
onPressed: () async {
print(await MoxplatformPlugin.platform.getCacheDataPath());
},
child: const Text('Get cache directory'),
),
],
),
),