pip_view 0.9.0 copy "pip_view: ^0.9.0" to clipboard
pip_view: ^0.9.0 copied to clipboard

outdated

Component to allow the presentation of a component below a floating one.

pip_view #

Component to allow the presentation of a component below a floating one.

Usage #

class MyScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PIPView(
      builder: (context, isFloating) {
        return Scaffold(
          body: Column(
            children: [
              Text('This is the screen that will float!');
              MaterialButton(
                child: Text('Start floating');
                onPressed: () {
                  PIPView.of(context).presentBelow(MyBackgroundScreen());
                },
              ),
            ],
          );
        );
      },
    );
  }
}

class MyBackgroundScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Text('This is my background screen!');
    );
  }
}
169
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Component to allow the presentation of a component below a floating one.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, provider

More

Packages that depend on pip_view