Addpage optimierung, button wird ausgeblendet auf der profil page
This commit is contained in:
+3
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user