import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';

import '../../../../widget/a11y/a11y_labels.dart';

class Roomplan extends StatelessWidget {
  const Roomplan({super.key});

  @override
  Widget build(BuildContext context) => Scaffold(
    appBar: AppBar(title: const Text('Raumplan')),
    body: Semantics(
      image: true,
      label: A11yLabels.roomPlan,
      child: PhotoView(
        imageProvider: Image.asset('assets/img/raumplan.png').image,
        minScale: 0.5,
        maxScale: 2.0,
        backgroundDecoration: BoxDecoration(
          color: Theme.of(context).colorScheme.surface,
        ),
      ),
    ),
  );
}
