feat: Allow setting the self-avatar
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user