작성
·
261
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
답변 1
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.
안녕하세요 에뮬레이터에서도, 그리고 실제 기기를 연결했을 때도 뚝뚝 끊기네요ㅠ. 컴퓨터 퍼포먼스가 부족한 경우엔 실제 기기 연동을 했을시에도 이 현상이 나타나는건가요? 이를 해결하려면 그럼 별다른 방법이 없을까요?
답변 감사합니다!