Want to implement Alphabet scroll in flutter? Use the below example code to implement Alphabet scroll in flutter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
class Example extends StatelessWidget { @override Widget build(BuildContext context) { return new ListView.builder(itemBuilder: (context, index) { return new StickyHeader( header: new Container( height: 50.0, color: Colors.blueGrey[700], padding: new EdgeInsets.symmetric(horizontal: 16.0), alignment: Alignment.centerLeft, child: new Text('Header #$index', style: const TextStyle(color: Colors.white), ), ), content: new Container( child: new Image.network(imageForIndex(index), fit: BoxFit.cover, width: double.infinity, height: 200.0), ), ); }); } } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.