Flutter Patrol — BLE 권한 다이얼로그까지 E2E 자동화하기
Flutter integration_test만으로는 Android 블루투스 권한 팝업과 iOS 알림 허용 다이얼로그를 제어할 수 없다. Patrol이 이 한계를 어떻게 해결하는지, IoT 앱의 BLE 권한 요청부터 기기 제어 흐름까지 실전 코드로 정리했다.
Flutter integration_test만으로는 Android 블루투스 권한 팝업과 iOS 알림 허용 다이얼로그를 제어할 수 없다. Patrol이 이 한계를 어떻게 해결하는지, IoT 앱의 BLE 권한 요청부터 기기 제어 흐름까지 실전 코드로 정리했다.
flutter_animate makes staggered list animations trivial: multiply the index by a delay, chain your effects, done. No AnimationControllers, no Tickers, no managing 20 separate animation states.
Use flutter_animate's animate(target:) to toggle animations from state changes. Builds toggle effects, step-by-step reveals, and conditional transitions in a fraction of the code a vanilla AnimationController needs.
Use ThenEffect to chain flutter_animate effects sequentially. No timer arithmetic, no AnimationControllers — just clean sequential animations that stay in sync when durations change.
FlutterBluePlus 1.10.0 이후 static 메서드만 있어 직접 Mock이 불가능하다. Wrapper 인터페이스 패턴으로 의존성을 격리하고 BLE 스캔·연결 로직을 Unit Test하는 방법을 실제 코드로 정리했다.
mqtt5_client의 MqttClient는 생성자에 host/port를 받아 직접 Mock이 어렵다. abstract MqttService 인터페이스와 FakeMqttService 패턴으로 MQTT 연결·구독·발행 로직을 Unit Test하는 방법을 실제 코드로 정리했다.
flutter test --coverage를 GitHub Actions에 연동해 PR마다 커버리지 리포트를 자동 생성하는 방법. ubuntu 러너 Flutter 세팅, lcov 리포트 아티팩트 업로드, generated 파일 제외까지 실제 workflow 파일로 정리했다.
flutter_animate turns Flutter's verbose AnimationController setup into chainable method calls. This post covers the basics: fadeIn, slideX, scale, chaining effects, and delay — with working code you can drop straight in.
flutter_animate's CustomEffect drives a double from 0 to 1 through any curve, letting you animate CustomPainter paths, progress arcs, and hand-drawn shapes without writing an AnimationController.
GetX + Clean Architecture로 만든 Flutter 앱에서 Unit Test를 처음 시작한다면 Repository 레이어가 답이다. Fake 구현체를 만들고 Controller 동작을 검증하는 실제 코드를 정리했다.
GetX Controller 테스트에서 삭제 확인 다이얼로그처럼 비동기 UI 상호작용이 필요한 케이스를 콜백 주입 패턴으로 해결하는 방법을 실제 코드로 정리했다.