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( appBar: AppBar(
title: const Text("Raumplan"), title: const Text("Raumplan"),
), ),
backgroundColor: Colors.white,
body: PhotoView( body: PhotoView(
imageProvider: Image.asset("assets/img/raumplan.jpg").image, imageProvider: Image.asset("assets/img/raumplan.jpg").image,
minScale: 0.5, minScale: 0.5,
maxScale: 2.0, maxScale: 2.0,
backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.surface), backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.background),
) ),
); );
} }
} }