Addpage optimierung, button wird ausgeblendet auf der profil page

This commit is contained in:
2023-04-28 00:08:05 +02:00
parent 6834e34b6a
commit 097f2744be
3 changed files with 143 additions and 252 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ class _MyHomePageState extends State<MyHomePage> {
body: Center(
child: widgetOptions.elementAt(_selectedIndex),
),
floatingActionButton: FloatingActionButton(
floatingActionButton: _selectedIndex == 3 // Wenn der ausgewählte Index 3 ist, also auf dem Profil-Widget
? null // Zeigt keinen Button an
: FloatingActionButton(
onPressed: () {
Navigator.push(
context,