- Custom User Agent: Set a custom user agent for the webview
- Configure via
AdBlockerWebview( adBlockerWebviewController: controller, shouldBlockAds: true, url: Uri.parse('https://example.com'), userAgent: 'MyCustomApp/1.0 (Custom User Agent)', // ... other parameters
)```
Breaking Changes
- Controller initialization added
blockedDomainsparameter inFilterConfiginstead of separate list - Minimum Supported flutter version is 3.38.0
- Minimum Supported dart version is 3.10.1
-
Whitelist/Allowlist Support: Disable ad blocking for specific trusted domains
- Configure via
FilterConfig.allowedDomains - Runtime control with
addAllowedDomain(),removeAllowedDomain(),isAllowedDomain() - Subdomain matching (e.g.,
example.comallowssub.example.com)
- Configure via
-
Blocking Statistics: Track blocked resources and CSS rules
statistics.blockedResourceCount- total blocked resourcesstatistics.cssRulesAppliedCount- CSS rules appliedstatistics.blockedDomains- per-domain breakdownresetStatistics()to clear counters
- Enhanced example app with:
- Shield icon badge showing blocked count
- Statistics bottom sheet with detailed breakdown
- Top blocked domains list
- Added
stoploadingmethod to AdblockerWebviewController - Disable automatic media playback
- Added support for easylist and adguard filters
- Added support for resource rules parsing
- Removed third party package dependency and using official webview_flutter package
Breaking Changes
- Minimum Supported flutter version is 3.27.1
- Minimum Supported dart version is 3.7.0
- Removed redundant isolate uses
- Removed flutter version constraint in pubspec.yaml
- Added ability to pass additional urls to block
Breaking Changes
- Minimum Supported flutter version is 3.19.5
- Minimum Supported dart version is 3.0.0
Other
- Added more capabilities to AdblockerWebviewController
getTitle,clearCacheandloadUrlmethods added- Added caching for the blocked host list
- Added support for page reload
- Fixed some analysis issues
- Added support for webview backward and forward navigation
- Reduced third party package dependency
- Updated inAppWebview version to
^5.8.0
** Breaking Changes**
- Removed Widget suffix from
AdBlockerWebview
** Other **
- Fixed broken links in readme
- Updated Readme
- Replaced
webview_flutterpackage withflutter_InAppWebview
- Fixed Unit tests
- Removed dependency from injectable library
- Fixed broken documentation links in readme
-
Fixed broken documentation links in readme
-
Initial release.