Flutter IoT Riverpod 테스트 - ProviderContainer로 상태 전이 검증하기
Flutter IoT 앱에서 Riverpod ProviderContainer로 Flutter BLE와 MQTT 상태 전이를 테스트하고 overrideWith로 Fake 의존성을 주입하는 방법을 정리했다.
Flutter IoT 앱에서 Riverpod ProviderContainer로 Flutter BLE와 MQTT 상태 전이를 테스트하고 overrideWith로 Fake 의존성을 주입하는 방법을 정리했다.
Flutter IoT 앱의 Flutter 스마트홈 대시보드에서 Riverpod select로 Flutter BLE와 MQTT 상태 변경 리빌드를 줄인 기준을 정리했다.
Flutter IoT 앱에서 Riverpod family로 Flutter 스마트홈 기기별 MQTT 상태와 Flutter BLE 연결 상태를 deviceId 기준으로 분리한 방법을 정리했다.
flutter_animate has no built-in FollowPathEffect, but CustomEffect paired with Flutter's PathMetric lets you move any widget along a smooth bezier curve in under 30 lines.
GetX 레포 소멸 이후 IoT 스마트홈 앱을 Riverpod 3.0으로 전환하는 첫 단계 실전 코드. BleController의 Rx 변수를 NotifierProvider로, Obx 위젯을 ref.watch로 교체하는 과정을 실제 코드로 정리했다.
Build a 3D card flip animation in Flutter using flutter_animate — covering the ScaleX midpoint swap, Matrix4 perspective trick, and state-driven toggle with working code examples.
Build an animated submit button in Flutter that transitions from idle to loading spinner to success checkmark using flutter_animate — with a clean state machine, error state, and no extra animation controllers.
Wire flutter_animate into go_router's CustomTransitionPage to add polished enter/exit animations across your Flutter app — no duplicated AnimationController code in every route.
Pass your own AnimationController into flutter_animate to manually trigger playback, reverse mid-animation, and synchronize multiple widgets to a single shared controller.
AppLifecycleState.paused/resumed 전환을 테스트 코드에서 시뮬레이션하는 방법과, IoT 앱에서 백그라운드 전환 시 MQTT 자동 재연결 로직을 단위 테스트로 검증하는 실전 패턴을 정리했다.
easy_localization을 사용하는 Flutter 위젯을 테스트 환경에서 Locale을 주입하는 방법과, ko/en 전환 시 발생하는 UI 버그를 위젯 테스트로 잡는 실전 패턴을 정리했다.
shared_preferences를 단위 테스트에서 격리하는 두 가지 방법을 비교한다. setMockInitialValues로 빠르게 쓰는 방법과 FakePrefsStore 추상화로 DI에 깔끔하게 녹이는 방법을 IoT 앱 실전 예제로 정리했다.
BLE·MQTT·Firebase까지 IoT 앱의 모든 레이어를 단위 테스트로 격리하며 배운 것들. 효과 있었던 Fake 패턴, 솔직히 과했던 테스트, IoT 앱만의 특이점을 정리했다.
2026년 4월 GetX 공식 GitHub 레포가 사라지면서 GetX는 사실상 기술 부채가 됐다. 50편 IoT 스마트홈 앱을 GetX로 만든 입장에서 Riverpod 3.0 마이그레이션을 실제로 고민한 과정을 정리했다.
How to use flutter_animate's ShakeEffect and related attention animations to signal errors, draw focus to UI elements, and build effective onboarding nudges — with working code examples.
Learn how to use flutter_animate's CallbackEffect and ListenEffect to trigger side effects, fire haptic feedback, and monitor animation progress values without touching AnimationController directly.
Build typewriter and character-by-character text reveal animations in Flutter using flutter_animate, with working code for staggered word reveal and reset-on-trigger patterns.
GetX의 Get.to, Get.off, GetMiddleware를 단위 테스트에서 검증하는 방법을 실제 IoT 앱 시나리오 코드로 정리했다. testMode 설정과 Get.reset() 패턴으로 Flutter 위젯 없이 라우팅 로직만 격리해 테스트한다.
flutter_local_notifications는 네이티브 의존성 때문에 유닛 테스트에서 직접 쓸 수가 없다. 인터페이스 추상화와 FakeNotificationService 패턴으로 IoT 앱의 알림 로직을 네이티브 없이 격리 테스트하는 방법을 실제 코드로 정리했다.
Dio의 인증 인터셉터(401 자동갱신 + 재시도)를 단위 테스트하는 방법을 실제 IoT 앱 코드로 정리했다. http_mock_adapter로 Dio를 격리하고, 토큰 갱신 성공/실패 시나리오를 네트워크 없이 검증한다.
Flutter 앱에서 DateTime.now()를 직접 호출하면 단위 테스트가 불가능하다. package:clock으로 Clock을 주입하고 withClock으로 시간을 고정하는 패턴과 보일러 예약 스케줄 로직 테스트 실전을 정리했다.
Flutter 테스트 리뷰에서 반복적으로 나오는 안티패턴 8가지를 IoT 앱 코드 예시와 함께 정리했다. 슬리피 테스트, Mock 남용, 단일 테스트에 Assert 무더기 넣기 — 이 실수들이 테스트를 느리고 신뢰할 수 없게 만든다.
Learn how to use flutter_animate's BlurEffect to create focus-reveal modals, frosted-glass entrances, and directional blur animations with working code examples.
Learn how flutter_animate's SwapEffect lets you replace a widget mid-animation — with real code for button state changes, icon swaps, and content reveals.
Newsletter
Tutorials and notes about Astro, Tailwind CSS and the template, when they are published. Nothing else.