Flutter WebView Routing


Center(
child: Column(
  mainAxisAlignment: MainAxisAlignment.center,
  children: <Widget>[
// Text('Entry')
RaisedButton(
  child: Text('Google'),
  onPressed:() {
Navigator.push(
  context,
  MaterialPageRoute(
builder: (context) => WebView(
  paramUrl: "https://google.com"
),
  ),
);
  } ,
),
RaisedButton(
  child: Text('Youtube'),
  onPressed:() {
Navigator.push(
  context,
  MaterialPageRoute(
builder: (context) => WebView(
  paramUrl: "https://youtube.com"
),
  ),
);
  } ,
)
  ],
),
  ),
Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment