Removing the drop shadow from a Scaffold AppBar in Flutter?
Looking at the AppBar
constructor, there's an elevation
property that can be used to set the height of the app bar and hence the amount of shadow cast. Setting this to zero removes the drop shadow:
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('My App Title'),
elevation: 0,
),
body: const Center(
child: Text('Hello World'),
),
);
}
I have tried something it might help you
AppBar(
backgroundColor: Colors.transparent,
bottomOpacity: 0.0,
elevation: 0.0,
),
Check this out