Skip to content

alnitak/widget_infos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Widget to listen to size and position changes of its child

NotificationListener<InfosReporterNotification>(
    onNotification: (notification) {
        debugPrint('position: ${notification.position}   size: ${notification.size}');
        return true;
    },
    child: InfosReporter(
        child: Container(
        /// The UniqueKey is needed here to rebuild this
        /// Container and notify [InfosReporter] that
        /// something changed 
        key: UniqueKey(),
        width: _size,
        height: _size,
        color: Colors.red,
        ),
    ),
),

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published