Fixed roomplan not using right background from theme

This commit is contained in:
Elias Müller 2023-09-18 20:47:01 +02:00
parent 132775e1bf
commit 9cc1edad23

View File

@ -10,13 +10,12 @@ class Roomplan extends StatelessWidget {
appBar: AppBar(
title: const Text("Raumplan"),
),
backgroundColor: Colors.white,
body: PhotoView(
imageProvider: Image.asset("assets/img/raumplan.jpg").image,
minScale: 0.5,
maxScale: 2.0,
backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.surface),
)
backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.background),
),
);
}
}