Uploaded December 2024 | Updated November 2026, 3 hours ago
π Learn from the written tutorial:
resocoder.com/patrol-basics-tutorial
π§ͺ Patrol docs:
patrol.leancode.co
Patrol is a powerful, open-source testing framework created by LeanCode that enhances Flutter's testing capabilities by enabling interaction with native platform features directly in Dart. It allows to handle permission dialogs, notifications, WebViews, and device settingsβfeatures previously unavailable in standard Flutter tests, making it truly possible to test the whole app.
This tutorial will take you through writing your first substantial Patrol test, interacting both with the Flutter app itself and also with native permission dialogs and notifications.
00:00 Introduction
01:42 Tutorial App Walkthrough
04:07 "Happy Path" Testing
05:55 Patrol Test Skeleton
08:05 Hot Restart for Tests
10:34 Pumping the Main App Widget
12:54 Interacting with Widgets
18:16 Types of Patrol Finders
21:12 Production-Grade Key Finders Approach
25:51 Accepting Native Permissions
31:25 Navigating to Native OS Home Screen
33:11 Interacting with Native Notifications
38:46 Running Patrol Tests on iOS
π Learn from the written tutorial:
resocoder.com/patrol-basics-tutorial
π§ͺ Patrol docs:
patrol.leancode.co
Patrol is a powerful, open-source testing framework created by LeanCode that enhances Flutter's testing capabilities by enabling interaction with native platform features directly in Dart. It allows to handle permission dialogs, notifications, WebViews, and device settingsβfeatures previously unavailable in standard Flutter tests, making it truly possible to test the whole app.
This tutorial will take you through writing your first substantial Patrol test, interacting both with the Flutter app itself and also with native permission dialogs and notifications.
00:00 Introduction
01:42 Tutorial App Walkthrough
04:07 "Happy Path" Testing
05:55 Patrol Test Skeleton
08:05 Hot Restart for Tests
10:34 Pumping the Main App Widget
12:54 Interacting with Widgets
18:16 Types of Patrol Finders
21:12 Production-Grade Key Finders Approach
25:51 Accepting Native Permissions
31:25 Navigating to Native OS Home Screen
33:11 Interacting with Native Notifications
38:46 Running Patrol Tests on iOS









![Flutter Firebase & DDD Course [22] - Uncompleted Switch
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
UI for displaying the notes is almost done and the only thing thats missing is the ability to switch between all and only uncompleted notes. Lets implement the switch!
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [22] - Uncompleted Switch](https://i.ytimg.com/vi/BR8bE6AUh8k/mqdefault.jpg)
