basic_icon_switcher 1.0.1
basic_icon_switcher: ^1.0.1 copied to clipboard
A Flutter plugin to dynamically change your app icon at runtime. Supports iOS, Android, Web (favicon), macOS, Windows, and Linux.
1.0.1 #
- Added Swift Package Manager (SPM) support for iOS and macOS.
1.0.0 #
This is a new package replacing mobile_icon_switcher. Published as basic_icon_switcher.
New Features #
- Web support: Dynamically change the browser tab favicon via
webFaviconUrlparameter - macOS support: Change the dock icon at runtime via
desktopIconAssetparameter - Windows support: Change the window and taskbar icon at runtime
- Linux support: Change the window decoration icon at runtime
getCurrentIcon(): Get the name of the currently active alternate icon (iOS/Android)isSupportedgetter: Check if icon switching is available on the current platform- Auto-detect default component on Android: No more
setDefaultComponent()required
Improvements #
- Fixed Android bug:
disableComponents()now only disables activity-aliases, not all activities - Fixed Android bug: Added missing
returnafter error response (execution no longer falls through) - Android: Uses
GET_DISABLED_COMPONENTSflag to properly enumerate all activity-aliases - Platform detection: Uses
kIsWeb+defaultTargetPlatforminstead ofdart:io(safe on web) - Modern SDK constraints: Dart
>=3.4.0 <4.0.0, Flutter>=3.22.0 - Modern Android build: compileSdk 34, minSdk 21, AGP 8.1.0, mavenCentral (jcenter removed)
- iOS deployment target: Bumped to 12.0
- Web-compatible: Uses
package:webinstead of deprecateddart:html - Platform interface pattern: Proper
plugin_platform_interfacefor testability
Breaking Changes #
- Package renamed from
mobile_icon_switchertobasic_icon_switcher - Class renamed from
MobileIconSwitchertoIconSwitcher changeIcon()now uses named parameterssetDefaultComponent()removed (auto-detected)platformVersionremoved- Method channel renamed from
app_icon_switchertobasic_icon_switcher
Previous releases (as mobile_icon_switcher) #
1.1.1 #
- Little fix in Git Repo
0.0.1 #
- First release