feat: Allow setting the self-avatar

This commit is contained in:
PapaTutuWawa committed 2023-07-28 21:46:47 +02:00
1 parent e975e749e4
commit daf40aed0b
10 files changed
+119 -17

No files matched your search

+11
View File
@@ -189,6 +189,17 @@ class MyHomePage extends StatelessWidget {
},
child: const Text('Show messaging notification'),
),
ElevatedButton(
onPressed: () async {
final result = await FilePicker.platform.pickFiles(
type: FileType.image,
);
if (result == null) return;
MoxplatformPlugin.notifications.setNotificationSelfAvatar(result.files.single.path!);
},
child: const Text('Set notification self-avatar'),
),
ElevatedButton(
onPressed: () async {
print(await MoxplatformPlugin.platform.getPersistentDataPath());