Added basic Marianum Message and Roomplan in more section

This commit is contained in:
Elias Müller 2023-05-06 11:32:21 +02:00
parent 254164a26c
commit 9b5a4f7029
4 changed files with 28 additions and 2 deletions

BIN
assets/img/raumplan.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@ -1,4 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Message extends StatefulWidget {
const Message({Key? key}) : super(key: key);
@ -10,6 +11,17 @@ class Message extends StatefulWidget {
class _MessageState extends State<Message> {
@override
Widget build(BuildContext context) {
return const Text("Message");
return Scaffold(
appBar: AppBar(
title: const Text("Marianum Message"),
),
body: ListView.builder(itemBuilder: (context, index) {
return ListTile(
leading: const Icon(Icons.newspaper),
title: Text(index.toString()),
trailing: const Icon(Icons.arrow_right),
);
}),
);
}
}

View File

@ -1,10 +1,23 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Roomplan extends StatelessWidget {
const Roomplan({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const Text("asd");
return Scaffold(
appBar: AppBar(
title: Text("Raumplan"),
),
backgroundColor: Colors.white,
body: InteractiveViewer(
panEnabled: true,
alignment: Alignment.center,
minScale: 0.8,
maxScale: 2,
child: Image.asset("assets/img/raumplan.jpg")
),
);
}
}

View File

@ -102,6 +102,7 @@ flutter:
- assets/ca/
- assets/background/
- assets/logo/
- assets/img/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware