Merge branch 'main' into 'Dynamische_Liste'
addpage beginn See merge request Gruber.Nicolas/oggauer_gemeindetrommler!2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:demoapp/AddPage.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'UserDefinedList.dart';
|
||||
|
||||
@@ -23,6 +24,19 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
});
|
||||
}
|
||||
|
||||
int _counter = 0;
|
||||
|
||||
void _incrementCounter() {
|
||||
setState(() {
|
||||
// This call to setState tells the Flutter framework that something has
|
||||
// changed in this State, which causes it to rerun the build method below
|
||||
// so that the display can reflect the updated values. If we changed
|
||||
// _counter without calling setState(), then the build method would not be
|
||||
// called again, and so nothing would appear to happen.
|
||||
_counter++;
|
||||
});
|
||||
}
|
||||
|
||||
void setLogin(bool value) {
|
||||
setState(() {
|
||||
login = value;
|
||||
@@ -65,6 +79,18 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
child: widgetOptions.elementAt(_selectedIndex),
|
||||
|
||||
),
|
||||
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => AddScreen()),
|
||||
);
|
||||
},
|
||||
tooltip: "Add",
|
||||
child: Icon(Icons.add),
|
||||
),
|
||||
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
items: const <BottomNavigationBarItem>
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user