1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Create an app with static app bar and a back button on the top left

Discussão em 'Mobile' iniciado por Stack, Outubro 10, 2024 às 15:32.

  1. Stack

    Stack Membro Participativo

    I am new to flutter and I am trying to create a simple app with a "static" that doesn't change between pages. I want also that the app bar will have a back button the page is changed, how can i keep truck of that.

    I have a created a widget for the app bar and tried making it statefull widget and save the Navigator state so that when it updates i will update my appBar widget.

    I will add the code for how i change pages as well:

    onTap: () {
    Navigator.push(
    context,
    PageRouteBuilder(
    pageBuilder: (context, animation, secondaryAnimation) =>
    UserInfoPage(data: 'Hello from Home Page!'),
    transitionsBuilder:
    (context, animation, secondaryAnimation, child) {
    return FadeTransition(opacity: animation, child: child);
    },
    ),
    );
    },


    Thank you for your help guys, I am here to learn :)

    Continue reading...

Compartilhe esta Página