Skip to content

Commit

Permalink
refactor : change animation type
Browse files Browse the repository at this point in the history
  • Loading branch information
cho4u4o committed Oct 23, 2024
1 parent 4e55d25 commit 395a8b7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/screens/selling/flaw_screen.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -154,7 +155,7 @@ class _FlawScreenState extends State<FlawScreen> {
final statecode =
await createSellingItem(imageFiles, requestObject);
if (statecode == 200) {
Navigator.of(context).pushReplacement(MaterialPageRoute(
Navigator.of(context).pushReplacement(CupertinoPageRoute(
builder: (context) => const EndSellingScreen(),
));
}
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/selling/photo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class _PhotoScreenState extends State<PhotoScreen> {
onTap: () {
isButtonEnabled
? {
Navigator.of(context).push(MaterialPageRoute(
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => const FlawScreen(),
))
}
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/selling/process_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _ProcessScreenState extends State<ProcessScreen> {
bgColor: black,
txtColor: white,
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => const PhotoScreen(),
));
},
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/selling/rule_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class _RuleScreenState extends State<RuleScreen> {
txtColor: white,
onTap: () {
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(
CupertinoPageRoute(
builder: (context) => const EndSellingScreen(),
),
(Route<dynamic> route) =>
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/selling/splash_selling_screen.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -47,7 +48,7 @@ class _SplashSellingScreenState extends State<SplashSellingScreen> {
bgColor: black,
txtColor: white,
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => const TermScreen(),
));
},
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/selling/term_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _TermScreenState extends State<TermScreen> {
onTap: () {
_allTermsAccepted
? {
Navigator.of(context).push(MaterialPageRoute(
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => const ProcessScreen(),
))
}
Expand Down

0 comments on commit 395a8b7

Please sign in to comment.