“Flutter transparente AppBar” Código de respuesta

Flutter transparente AppBar

@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")),
    );
  }
Determined Dunlin

Cómo hacer que AppBar sea transparente en Flutter

Scaffold(
 extendBodyBehindAppBar: true,
  // or, extandbody: true,
 AppBar(
  backgroundColor: Colors.transparent, 
  elevation: 0.0,)
);
Magnificent Moose

Flutter transparente de AppBar

@override
  Widget build(BuildContext context) {
    return Scaffold(
      
      appBar: AppBar(
        backgroundColor: Colors.transparent,      //<<<<<<<<<
        elevation: 0,
        title: Text("Title"),
      ),
      body: Center(child: Text("Content")),
The Best

Respuestas similares a “Flutter transparente AppBar”

Preguntas similares a “Flutter transparente AppBar”

Más respuestas relacionadas con “Flutter transparente AppBar” en Dart

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código