toast_native_dev 0.0.9
toast_native_dev: ^0.0.9 copied to clipboard
Native toast notifications that appear above Flutter widgets and platform views using Android and iOS overlay layers.
0.0.9 #
- iOS: reuse a single overlay
UIWindowfor all toasts instead of allocating one per toast. - Android: remove a toast from the stack exactly when its exit animation completes, instead of after a fixed delay.
- Use monotonic clocks (
SystemClock.elapsedRealtime/systemUptime) for pause/resume timers so wall-clock changes can't corrupt remaining duration. - Drop the
lengthargument from the MethodChannel payload;durationMsis now the single source of truth on both platforms. - Remove the
androidx.compose.material3dependency from the Android build. - Breaking:
NativeToastLength.namehas been removed (it was unused internally).
0.0.8 #
- Update native toast spacing to use 14dp/pt content padding and icon gap.
- Position top and bottom Android toasts relative to system bars before applying edge padding.
- Match iOS top and bottom edge spacing to the updated 14pt toast layout.
0.0.7 #
- Start-align Android toast message text after the icon.
- Tighten Android toast text line metrics so messages remain vertically centered.
0.0.6 #
- Center Android native toast message text within the toast content area.
0.0.5 #
- Fix Android Compose
Offsetimport so the example app builds successfully. - Add Dart MethodChannel contract tests for toast options, durations, colors, icons, and dismiss directions.
- Expand the example app into a manual test lab for stress, full-size, stacking, timer, color, and gesture risk cases.
0.0.4 #
- Correct README and package description wording around Flutter overlays and native platform views.
0.0.3 #
- Sync README with the current API, MethodChannel name, and platform implementation.
- Exclude local build output and machine-specific files from the pub.dev package archive.
0.0.2 #
- Rewrite README with accurate API documentation and clearer structure (no code changes).
0.0.1 #
- Initial release.
- Native toast notifications that render above Flutter widgets and native WebViews (Hybrid Composition).
- Android: Jetpack Compose overlay on the Activity's
DecorView. - iOS: per-toast
UIWindowat.alert + 1. - Features: success / error / warning types, top / bottom positions, custom colors and icons, durations (
short/medium/long/ages/never/ custom ms), drag-to-dismiss, hold-to-pause, mirrored enter/exit animations.