We can scroll the text up and down but no scroll bar is shown.
My purpose in showing the scroll bar was to make the user aware that there is more text below.
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text('Scrollable Alert Dialog'),
content: SingleChildScrollView(
child: Scrollbar(
child: Column(
children: [
// add your scrollable content here
// for example:
for (var i = 1; i <= 20; i++)
Text('Item $i'),
],
),
),
),
actions: [
TextButton(
child: Text('Close'),
onPressed: () => Navigator.of(context).pop(),
),
],
);
},
);