• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Flutter – onPressed – change page

Resolved: Flutter – onPressed – change page

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a problem with changing page with Flutter. I created two .dart Files and I want to switch from page 1 to page 2 by a button. Can someone help me please?
On the Second page I wrote this:
What have I to change, so that i can navigate through my files? In Android Studio I can’t find any ERROR Message or anything like that.
I thank you in advance for your support.

Answer:

So you need to remove the MaterialApp() widget in on the second page: ->First Page
->Second Page
Just reference your first page in your main class
Check the images below enter image description here
enter image description here

If you have better answer, please add a comment about this, thank you!

android-studio dart flutter
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I modify formData before sending it?

01/04/2023

Resolved: How to efficient create SimpleITK image?

01/04/2023

Resolved: How can I write CSS selector(s) that apply to table rows for all td elements on that row after a td with a certain class?

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.