import 'package:flutter/material.dart'; class ListPage extends StatelessWidget { const ListPage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( body: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Top Menu', style: TextStyle( fontSize: 18, ), ), Expanded( child: ListView.builder( shrinkWrap: true, // itemCount: 15, // ignore: avoid_types_as_parameter_names itemBuilder: (context, int) { return Card( child: ListTile( title: Text('aaa'), subtitle: Text('Description of $int'), trailing: Icon( Icons.do_not_disturb_on, color: Colors.red, ), ), ); })), ], )); } }