xxxxxxxxxx
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.transparent, //<<<<<<<<<
elevation: 0,
title: Text("Title"),
),
body: Center(child: Text("Content")),
xxxxxxxxxx
@override
Widget build(BuildContext context) {
return Scaffold(
extendBodyBehindAppBar: true,
backgroundColor: Colors.red,
appBar: AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
title: Text("Title"),
),
body: Center(child: Text("Content")),
);
}
xxxxxxxxxx
Scaffold(
extendBodyBehindAppBar: true,
// or, extandbody: true,
AppBar(
backgroundColor: Colors.transparent,
elevation: 0.0,)
);
xxxxxxxxxx
AppBar(
backgroundColor: Colors.transparent, // Set the background color of the AppBar to transparent
elevation: 0, // Remove the shadow effect
// Add other properties as per your requirement
title: Text('My App'),
actions: [
IconButton(
icon: Icon(Icons.settings),
onPressed: () {
// Perform desired action
},
),
],
)