on_visibility_detector_extension 0.0.1 copy "on_visibility_detector_extension: ^0.0.1" to clipboard
on_visibility_detector_extension: ^0.0.1 copied to clipboard

An list on extension to detect when widget appear or disappear

on_visibility_detector_extension #

An list on extension to detect when widget appear or disappear, based on (SwiftUI modifier)[https://developer.apple.com/documentation/swiftui/view/onappear(perform:)]

Getting Started #

import 'package:on_visibility_detector_extension/on_visibility_detector_extension.dart';

const Text('Hello World!')
        .onAppear(() => debugPrint('Text appear'))
        .onDisappear(() => debugPrint('Text disappear')),
4
likes
160
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

An list on extension to detect when widget appear or disappear

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, widget_visibility_detector

More

Packages that depend on on_visibility_detector_extension