refactor: Fix the navigation after user navigate back to the level list
This commit is contained in:
parent
a1c271408a
commit
4f4893375c
|
|
@ -203,15 +203,15 @@ class _FeedbackScreenState extends State<FeedbackScreen> {
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
borderColor: AppColors.blueColor,
|
borderColor: AppColors.blueColor,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushReplacement(
|
Navigator.pushAndRemoveUntil(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => LevelListScreen(
|
builder: (context) => LevelListScreen(
|
||||||
topicId: widget.topicId,
|
topicId: widget.topicId,
|
||||||
topicTitle: widget.topicTitle,
|
topicTitle: widget.topicTitle,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
(Route<dynamic> route) => route.isFirst);
|
||||||
);
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ class _TopicsListScreenState extends State<TopicsListScreen> {
|
||||||
description: topic.description,
|
description: topic.description,
|
||||||
isCompleted: topic.isCompleted,
|
isCompleted: topic.isCompleted,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pushReplacement(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => LevelListScreen(
|
builder: (context) => LevelListScreen(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user