rrousselGit / provider

InheritedWidgets, but simple
https://pub.dev/packages/provider
MIT License
5.11k stars 512 forks source link

Fix typos #874

Closed choi88andys closed 6 months ago

choi88andys commented 6 months ago

This version may also acceptable.

 runApp(
   Builder(builder: (context) {
     final value = context.watch<Movie?>();

     if (value == null) Text('no Movie found');
     return Text(value.title);
   }),
 );


But I think this version is more self-explanatory.

 runApp(
   Builder(builder: (context) {
     final movie = context.watch<Movie?>();

     if (movie == null) Text('no Movie found');
     return Text(movie.title);
   }),
 );
changeset-bot[bot] commented 6 months ago

⚠️ No Changeset found

Latest commit: 9258f2b2b4c8798229672e5f77efc9d62a0036fe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

rrousselGit commented 6 months ago

LGTM thanks!