modal barrier flutter code example
Example: modal barrier in flutter
Stack(
children: [
new Opacity(
opacity: 0.3,
child: const ModalBarrier(dismissible: false, color: Colors.grey),
),
Center(
child: Container(
Text('Hello'),
),
),
],
)