diff --git a/lib/screens/selling/flaw_screen.dart b/lib/screens/selling/flaw_screen.dart index 5b638d7..05b97f7 100644 --- a/lib/screens/selling/flaw_screen.dart +++ b/lib/screens/selling/flaw_screen.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:logger/logger.dart'; @@ -154,7 +155,7 @@ class _FlawScreenState extends State { final statecode = await createSellingItem(imageFiles, requestObject); if (statecode == 200) { - Navigator.of(context).pushReplacement(MaterialPageRoute( + Navigator.of(context).pushReplacement(CupertinoPageRoute( builder: (context) => const EndSellingScreen(), )); } diff --git a/lib/screens/selling/photo_screen.dart b/lib/screens/selling/photo_screen.dart index ea2a687..405408f 100644 --- a/lib/screens/selling/photo_screen.dart +++ b/lib/screens/selling/photo_screen.dart @@ -275,7 +275,7 @@ class _PhotoScreenState extends State { onTap: () { isButtonEnabled ? { - Navigator.of(context).push(MaterialPageRoute( + Navigator.of(context).push(CupertinoPageRoute( builder: (context) => const FlawScreen(), )) } diff --git a/lib/screens/selling/process_screen.dart b/lib/screens/selling/process_screen.dart index 89f35a1..701ceb3 100644 --- a/lib/screens/selling/process_screen.dart +++ b/lib/screens/selling/process_screen.dart @@ -96,7 +96,7 @@ class _ProcessScreenState extends State { bgColor: black, txtColor: white, onTap: () { - Navigator.of(context).push(MaterialPageRoute( + Navigator.of(context).push(CupertinoPageRoute( builder: (context) => const PhotoScreen(), )); }, diff --git a/lib/screens/selling/rule_screen.dart b/lib/screens/selling/rule_screen.dart index 69e5d1c..aac6b26 100644 --- a/lib/screens/selling/rule_screen.dart +++ b/lib/screens/selling/rule_screen.dart @@ -161,7 +161,7 @@ class _RuleScreenState extends State { txtColor: white, onTap: () { Navigator.of(context).pushAndRemoveUntil( - MaterialPageRoute( + CupertinoPageRoute( builder: (context) => const EndSellingScreen(), ), (Route route) => diff --git a/lib/screens/selling/splash_selling_screen.dart b/lib/screens/selling/splash_selling_screen.dart index f194f3c..9ddf22c 100644 --- a/lib/screens/selling/splash_selling_screen.dart +++ b/lib/screens/selling/splash_selling_screen.dart @@ -1,3 +1,4 @@ +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:saphy/screens/selling/term_screen.dart'; import 'package:saphy/utils/colors.dart'; @@ -47,7 +48,7 @@ class _SplashSellingScreenState extends State { bgColor: black, txtColor: white, onTap: () { - Navigator.of(context).push(MaterialPageRoute( + Navigator.of(context).push(CupertinoPageRoute( builder: (context) => const TermScreen(), )); }, diff --git a/lib/screens/selling/term_screen.dart b/lib/screens/selling/term_screen.dart index eac7b51..5b2d13d 100644 --- a/lib/screens/selling/term_screen.dart +++ b/lib/screens/selling/term_screen.dart @@ -74,7 +74,7 @@ class _TermScreenState extends State { onTap: () { _allTermsAccepted ? { - Navigator.of(context).push(MaterialPageRoute( + Navigator.of(context).push(CupertinoPageRoute( builder: (context) => const ProcessScreen(), )) }