Add wallpaper
This commit is contained in:
parent
09ca7d817d
commit
771aa6fbe2
12 changed files with 109 additions and 32 deletions
|
|
@ -50,6 +50,7 @@ class MatrixState extends State<Matrix> {
|
|||
Map<String, dynamic> shareContent;
|
||||
|
||||
String activeRoomId;
|
||||
File wallpaper;
|
||||
|
||||
void clean() async {
|
||||
if (!kIsWeb) return;
|
||||
|
|
@ -365,6 +366,14 @@ class MatrixState extends State<Matrix> {
|
|||
} else {
|
||||
client = widget.client;
|
||||
}
|
||||
if (client.storeAPI != null) {
|
||||
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
|
||||
final file = File(path);
|
||||
if (await file.exists()) {
|
||||
wallpaper = file;
|
||||
}
|
||||
});
|
||||
}
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue