提交 5312e81b authored 作者: yueweilu's avatar yueweilu

知识测评 标题

上级 cf882150
......@@ -17,7 +17,7 @@ class _AnswerPageState extends State<AnswerPage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('知识测评'),
title: Text('${widget.params['title']}'),
),
body: InAppWebView(
initialUrlRequest: URLRequest(
......
......@@ -168,7 +168,10 @@ class _ReadPageState extends State<ReadPage> {
String chapterId = args.first[0].toString();
String position = args.first[1].toString();
// 0:未答题 1:答题结果
String type = args.first[2].toString();
// 测评标题
String title = args.first[3].toString();
String url = '';
// 未答题
if(type == '0'){
......@@ -182,7 +185,8 @@ class _ReadPageState extends State<ReadPage> {
'position':position,
'url':url,
'book_id':readController.bookId,
'token':UserStore.to.token
'token':UserStore.to.token,
'title':title
};
Console.log('监听答题回调---------------给页面传参---------------------------------$params');
context.pushNamed(Routes.answer,queryParameters: params);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论