removed deprecated uses, fmt
This commit is contained in:
@@ -18,5 +18,7 @@ Future pushAndReplaceToPage(BuildContext context, Widget widget) async {
|
||||
|
||||
Future popAllAndPush(BuildContext context, Widget widget) async {
|
||||
await Navigator.pushAndRemoveUntil(
|
||||
context, MaterialPageRoute(builder: (BuildContext context) => widget), ModalRoute.withName('/'));
|
||||
context,
|
||||
MaterialPageRoute(builder: (BuildContext context) => widget),
|
||||
ModalRoute.withName('/'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user