1

I have made total 14 screens in the application, you may see in the code whose link i have provided below. Two raised buttons i have created, one button named 'Wonders of world' on pressing will take it to second screen the other button named 'wonders of India' will take it to eleventh screen. Unfortunately The first button wonder of world is not visible. Why it is not showing? This is the image on running the app, you can see only one raised button visible.

The link of the code

Vasav Chaturvedi
  • 97
  • 1
  • 3
  • 8

1 Answers1

0

Just wrap your both button in Row Like

Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                RaisedButton(
                  child: Text("Wonders of World"),
                  onPressed: (){
                    Navigator.push(context, MaterialPageRoute(builder: (context) => SplashUI()));
                  },
                  color: Colors.red,
                  textColor: Colors.yellow,
                  padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
                  splashColor: Colors.grey,
                ),
                RaisedButton(
                  child: Text("Wonders of India"),
                  onPressed: (){
                    Navigator.push(context, MaterialPageRoute(builder: (context) => EleventhScreen()));
                  },
                  color: Colors.red,
                  textColor: Colors.yellow,
                  padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
                  splashColor: Colors.grey,
                )
              ],
            ),
Deepak Ror
  • 2,084
  • 2
  • 20
  • 26
  • its shwoing Thanks for the feedback! Votes cast by those with less than 15 reputation are recorded, but do not change the publicly displayed post score. – Vasav Chaturvedi Sep 01 '20 at 11:02
  • Vasav Chaturvedi if @Deepak Ror answer helped you, then you should upvote or accept it – Anurag Tripathi Sep 01 '20 at 16:45
  • when i click on the upvote icon, it gets upvoted but again get back to zero upvote and a message comes ' Thanks for the feedback! Votes cast by those with less than 15 reputation are recorded, but do not change the publicly displayed post score.' – Vasav Chaturvedi Sep 02 '20 at 05:39
  • don't worry @VasavChaturvedi, you have done your best. – Deepak Ror Sep 02 '20 at 10:41