sailor icon indicating copy to clipboard operation
sailor copied to clipboard

Adds SailorConsumer Widget

Open hjJunior opened this issue 5 years ago • 1 comments

This PR is a MVP of #10, which will allow users to use SailorConsumer as a Builder

Example

class PageWithSailorConsumer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SailorConsumer<ThirdPageArgs>(
      builder: (context, ThirdPageArgs arg) {
        return Scaffold(
          appBar: AppBar(
            title: Text('Using SailorConsumer'),
          ),
          body: Text('Count arg: ${arg.count}'),
        );
      },
    );
  }
}

Simulator Screen Shot - iPhone X - 2019-12-02 at 10 29 34

I also added this to example folder

hjJunior avatar Dec 02 '19 13:12 hjJunior

when this PR can be merge?

pishguy avatar Mar 20 '20 10:03 pishguy