mirrored_repositories/Flutter-demo/Flutter组件案例/25-lib-(普通路由跳转,传参,返回页面)
import 'package:flutter/material.dart';
/** 
 * 搜索页面
*/

class SearchPage extends StatelessWidget {

  String keyWord;

  SearchPage({this.keyWord = "默认"}); //构造方法, 接收参数

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("搜索页面")
      ),
      body: Text("搜索页面内容区域--${this.keyWord}"),
      floatingActionButton: FloatingActionButton( //浮动按钮
        child: Text("返回"),
        onPressed: (){
          Navigator.of(context).pop(); //退出当前堆, 返回上一页
        },
      ),
    );
  }
}