inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

실습8 - PageController 사용해보기

312

징징이

작성한 질문수 1

0

실습8 - PageController 사용해보기에서 질문 있습니다.

      // 이미지 자동으로 다음페이지로 이동
      controller.animateToPage(
        nextPage,
        duration: const Duration(microseconds: 400),
        curve: Curves.linear,
      );

위 부분에서 Curves.linear로 했는데 애니메이션이 적용이안됩니다.

화면이 드래그되는 애니메이션으로 강의처럼 부드럽게 넘어가는것이아니라, 다음사진으로 뚝뚝끊겨 이동합니다...! 제가잘못한 부분이 어딘지,왜이런건지 혹시 알려주실수있을까요?

감사합니다.

 

실습 깃코드

https://github.com/hyeonjeong-ko/flutter-class/blob/main/lib/screen/home_screen.dart

 

flutter 클론코딩

답변 1

0

코드팩토리

안녕하세요!

지금 코드상으로 봤을때는 큰 문제가 없어 보입니다.

혹시 에뮬레이터/시뮬레이터에서만 그러는걸가요?

컴퓨터 퍼포먼스가 부족할때 말씀하신 현상이 나타날 수 있습니다.

실제 기기를 연결해서 확인해보시면 가장 정확합니다.

그게 아니라면 다시한번 댓글 부탁드립니다.

감사합니다!

0

징징이

안녕하세요 에뮬레이터에서도, 그리고 실제 기기를 연결했을 때도 뚝뚝 끊기네요ㅠ. 컴퓨터 퍼포먼스가 부족한 경우엔 실제 기기 연동을 했을시에도 이 현상이 나타나는건가요? 이를 해결하려면 그럼 별다른 방법이 없을까요?

답변 감사합니다!

0

코드팩토리

실기기에서도 그렇다면 퍼포먼스 문제는 아닐 것 같아요. 전체 코드 레포지토리 공유 한번 부탁드립니다. 제가 확인 해볼게요

0

징징이

https://github.com/hyeonjeong-ko/flutter-class/
입니다 바쁘실텐데 답변 감사합니다

0

코드팩토리

보내주신 프로젝트가 아예 실행이 안되는데 확인 한번 부탁드립니다.

 

에러

Launching lib/main.dart on iPhone 14 in debug mode...

/Users/jihochoi/Desktop/flutter-class/ios/Runner/Info.plist: Property List error: Value missing for key inside <dict> at line 53 / JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0.

ProcessException: The command failed

Command: /usr/bin/plutil -convert xml1 -o - /Users/jihochoi/Desktop/flutter-class/ios/Runner/Info.plist

Running pod install...

CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate

Using ARCHS setting to build architectures of target Pods-Runner: (``)

[!] Unable to find a target named RunnerTests in project Runner.xcodeproj, did find Runner.

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer/target_inspector.rb:108:in `compute_targets'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer/target_inspector.rb:40:in `compute_results'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1197:in `block (3 levels) in inspect_targets_to_integrate'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1195:in `each'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1195:in `block (2 levels) in inspect_targets_to_integrate'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `each'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `block in inspect_targets_to_integrate'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1188:in `inspect_targets_to_integrate'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:107:in `analyze'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:422:in `analyze'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:162:in `install!'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:52:in `run'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `load'

/opt/homebrew/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `<main>'

Error output from CocoaPods:

[!] Automatically assigning platform iOS with version 11.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

Error running pod install

Error launching application on iPhone 14.

198강 (){onTap(e);}의 이해 돕기

0

29

1

video_call 플러그인 설치후 에러 발생

0

46

1

SDK 안드로이드 설치 질문!

0

60

1

코드팩토리 디스코드 링크 다시 부탁드려요~

0

92

1

Webview를 이용해서 URL 상의 페이지 출력 불가

0

70

1

홈스크린 함수를 함축해서 main.dart에 옮기는 문제

0

55

1

플레이스토어

0

59

1

아고라 엔진 init 함수의 반환타입이 Future<void> 이것의 의미는 무엇인가요?

0

55

1

가이드라인 질문

0

57

0

emulator 에러 환경설정 뭐가 문제 일까요??

0

77

1

emulator 실행 오류

0

93

3

Column을 가로방향 최대 사이즈를 차지하도록 하는 방법에 관련

0

71

1

pubspec.yaml에서 font를 추가하면서 weight 값을 지정하는 것이 의미가 있는 것인지 문의

0

43

1

setState()를 호출하지 않으면 build가 실행 안되는 건가요?

0

53

1

video_call 플러그인 설치시 에러문제

0

64

1

children 안의 if 문에서 { } 못쓰는 이유?

0

48

1

이렇게 오류가 떠요

0

64

1

AppBar 사용했는데

0

61

2

[문제해결] '오늘도 출첵!' 의 171번 강의에서 중요한 문제를 발견했습니다

0

56

1

StatefulWidget 실습 에러가 발생합니다.[해결완료]

0

63

1

Video Player 프로젝트에 대한 추가 질문

0

53

0

Row위젯이나 column위젯의 위치는 누가 정하나요??

0

42

1

geolocator 오류때문에 개발진행이 불가능입니다

0

63

1

API 관련 이슈

0

86

2