-
-
Save marcossevilla/611871bab3934a201625fe507982f32e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WidgetToShowNames extends ConsumerWidget { | |
@override | |
Widget build(BuildContext context, ScopedReader watch) { | |
final names = watch(namesNotifier.state); | |
return ListView.builder( | |
itemCount: names.length, | |
itemBuilder: (_, index) { | |
final name = names[index]; | |
return Text(name); | |
} | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment