Soru/moor

This commit is contained in:
Sorunome
2020-05-13 13:58:59 +00:00
committed by Christian Pauly
parent 226705be2a
commit 782c849772
55 changed files with 1035 additions and 1134 deletions

View File

@ -15,7 +15,7 @@ class ImageBubble extends StatefulWidget {
}
class _ImageBubbleState extends State<ImageBubble> {
static Map<String, MatrixFile> _matrixFileMap = {};
static final Map<String, MatrixFile> _matrixFileMap = {};
MatrixFile get _file => _matrixFileMap[widget.event.eventId];
set _file(MatrixFile file) {
_matrixFileMap[widget.event.eventId] = file;
@ -65,7 +65,7 @@ class _ImageBubbleState extends State<ImageBubble> {
}
_getFile().then((MatrixFile file) {
setState(() => _file = file);
}, onError: (error) {
}, onError: (error, stacktrace) {
setState(() => _error = error);
});
return Center(