diff --git a/lib/screen/pages/more/roomplan/roomplan.dart b/lib/screen/pages/more/roomplan/roomplan.dart index 8067cb9..7ebd5cf 100644 --- a/lib/screen/pages/more/roomplan/roomplan.dart +++ b/lib/screen/pages/more/roomplan/roomplan.dart @@ -1,5 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:photo_view/photo_view.dart'; class Roomplan extends StatelessWidget { const Roomplan({Key? key}) : super(key: key); @@ -8,16 +9,15 @@ class Roomplan extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("Raumplan"), + title: const Text("Raumplan"), ), backgroundColor: Colors.white, - body: InteractiveViewer( - panEnabled: true, - alignment: Alignment.center, - minScale: 0.8, - maxScale: 2, - child: Image.asset("assets/img/raumplan.jpg") - ), + body: PhotoView( + imageProvider: Image.asset("assets/img/raumplan.jpg").image, + minScale: 0.5, + maxScale: 2.0, + backgroundDecoration: const BoxDecoration(color: Colors.white60), + ) ); } } diff --git a/pubspec.yaml b/pubspec.yaml index f9c81f6..642328f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -79,6 +79,7 @@ dependencies: async: ^2.11.0 animated_digit: ^3.2.1 syncfusion_flutter_pdfviewer: ^21.2.8 + photo_view: ^0.14.0 dev_dependencies: flutter_test: