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,
|
||||
borderColor: AppColors.blueColor,
|
||||
onPressed: () {
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => LevelListScreen(
|
||||
topicId: widget.topicId,
|
||||
topicTitle: widget.topicTitle,
|
||||
Navigator.pushAndRemoveUntil(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => LevelListScreen(
|
||||
topicId: widget.topicId,
|
||||
topicTitle: widget.topicTitle,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
(Route<dynamic> route) => route.isFirst);
|
||||
},
|
||||
)
|
||||
],
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ class _TopicsListScreenState extends State<TopicsListScreen> {
|
|||
description: topic.description,
|
||||
isCompleted: topic.isCompleted,
|
||||
onTap: () {
|
||||
Navigator.pushReplacement(
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => LevelListScreen(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user