How to create Expandable ListView in Flutter
Try this: import ‘package:flutter/material.dart’; void main() => runApp(MaterialApp(home: MyApp(), debugShowCheckedModeBanner: false,),); class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { @override Widget build(BuildContext context) { return Scaffold( body: ListView.builder( itemCount: vehicles.length, itemBuilder: (context, i) { return ExpansionTile( title: Text(vehicles[i].title, style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold, fontStyle: FontStyle.italic),), children: <Widget>[ … Read more