Skip to content

Instantly share code, notes, and snippets.

@kauemurakami
Last active July 16, 2020 19:06
Show Gist options
  • Save kauemurakami/b9aae348d67744fede76075c93d8e836 to your computer and use it in GitHub Desktop.
Save kauemurakami/b9aae348d67744fede76075c93d8e836 to your computer and use it in GitHub Desktop.
pages navigation
import 'package:get/get.dart';
import 'package:getx_pattern/app/ui/android/details/details_page.dart';
import 'package:getx_pattern/app/ui/android/home/home_page.dart';
part './app_routes.dart';
class AppPages {
static final routes = [
GetPage(name: Routes.INITIAL, page:()=> HomePage(),),
GetPage(name: Routes.DETAILS, page:()=> DetailsPage(), binding: DetailsBinding()), //dependencias de details via rota
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment