import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.green, scaffoldBackgroundColor: const Color(0xFFFFFFFF) ), home: const MyHomePage(title: 'Bürger Forum Oggau'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State createState() => _MyHomePageState(); } class _MyHomePageState extends State { int _counter = 0; void _incrementCounter() { setState(() { _counter++; }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'Knopfdruck:', ), Text( '$_counter', style: Theme.of(context).textTheme.headline4, ), ], ), ), floatingActionButton: FloatingActionButton( onPressed: _incrementCounter, tooltip: 'Increment', child: const Icon(Icons.add), ), bottomNavigationBar: BottomAppBar( color: const Color(0xFF1601FD), child: IconTheme( data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary), child: Row( children: [ IconButton( tooltip: 'News', icon: const Icon(Icons.newspaper), onPressed: () {}, ), //if (centerLocations.contains(fabLocation)) const Spacer(), IconButton( tooltip: 'Mängel', icon: const Icon(Icons.warning), onPressed: () {}, ), IconButton( tooltip: 'Profil', icon: const Icon(Icons.person), onPressed: () {}, ), ], ), ), ) ); } }