Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

AppBar nao centralizado

Oi, pessoal, tudo bem? Consegui fazer exatamente tudo dessa parte do treinamento, mas o texto do AppBar nao ta ficando centralizado, ta ficando alinhado a esquerda.

Comecando da propriedade home

      home: Scaffold(
        body: 
        SizedBox (
          height: 300,
          child: Card(
            margin: EdgeInsets.all(16),
            child: Column(
              children: <Widget> [
                Stack(
                  children: <Widget>[
                    Image.network('https://www.receitadevovo.com.br/gbau/sistema/receitas/img/bolo-de-trigo-fofinho.jpg', fit: BoxFit.fill, height: 268),
                    Positioned(
                      bottom:10,
                      left: 10,
                      child: Text('Orange Cake', style: TextStyle(fontSize: 20))
                    )
                  ],
                )

              ]
            )
          )
        ),

        appBar: AppBar(title: Text("Cooking at home")),
      )
    );

Precisaria fazer algo pra centralizar ou em teoria assim ja ficaria? Obrigado!

1 resposta
solução!

Ja descobri, coloquei o seguinte

  appBar: AppBar(
      centerTitle: true,
      title: Text("Cooking at home")),
  )

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software