Created
May 27, 2022 16:18
-
-
Save Abushawish/048acfdaf956640ea6fa8b3991dbbd81 to your computer and use it in GitHub Desktop.
SingleChildScrollView with List.generate in Flutter
This file contains hidden or 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
SingleChildScrollView( | |
scrollDirection: Axis.horizontal, | |
child: Row( | |
children: List.generate(namesStringList.length, (index) { | |
return Text(namesStringList[index]); | |
}), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment