You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alvaro Vasconcelos edited this page Mar 3, 2020
·
1 revision
Adicionando Rotas
Você pode adicionar rotas no seu módulo usando o getter 'routers';
classAppModuleextendsMainModule {
//aqui ficarão todas as classes que deseja Injetar no seu projeto (ex: bloc, dependency)@overrideList<Bind> get binds => [];
//aqui ficarão as rotas do seu módulo@overrideList<Router> get routers => [
Router("/", child: (_, args) =>HomePage()),
Router("/login", child: (_, args) =>LoginPage()),
];
//adicione seu widget principal aqui @overrideWidgetget bootstrap =>AppWidget();
}