基本路由


RaisedButton(
child: Text("跳转到搜索页面"),
onPressed: (http://www.amjmh.com){
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context){
return FormPage(); // 需要引入这个页面 import '../FormPage.dart';
}
)
);

},
color: Theme.of(context).accentColor,
textTheme: ButtonTextTheme.primary
)
————————————————

原文地址:https://www.cnblogs.com/hyhy904/p/11402890.html