Answers for "background appbar tranparent"

0

background appbar tranparent

This is supported by Scaffold now (in stable - v1.12.13+hotfix.5).

1. Set Scaffold extendBodyBehindAppBar to true,
2. Set AppBar elevation to 0 to get rid of shadow,
3. Set AppBar backgroundColor transparency as needed.

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      extendBodyBehindAppBar: true,
      backgroundColor: Colors.red,
      appBar: AppBar(
//        backgroundColor: Colors.transparent, // For full transparency
        backgroundColor: Color(0x44000000),
        elevation: 0,
        title: Text("Title"),
      ),
      body: Center(child: Text("Content")),
    );
  }
Posted by: Guest on February-08-2022

Code answers related to "background appbar tranparent"

Browse Popular Code Answers by Language