import 'package:flutter/material.dart'; void main() => runApp( MaterialApp( home: Scaffold( body: ListView.builder( itemBuilder: (_, index) { final key = GlobalKey<ScaffoldState>(); return ListTile( onTap: () { key.currentState.showSnackBar( SnackBar( content: Text('$index bookmarked'), ), ); }, title: Container( margin: const EdgeInsets.all(16), height: 200, child: Scaffold( key: key, backgroundColor: Colors.black12, body: Center( child: Text( index.toString(), style: const TextStyle( fontSize: 60, ), ), ), ), ), ); }, ), ), ), );