Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 6, 2022 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/707c6e4026daf8d24a1f09e78f5c5b5e to your computer and use it in GitHub Desktop.
Save velotiotech/707c6e4026daf8d24a1f09e78f5c5b5e to your computer and use it in GitHub Desktop.
import 'package:get/get.dart';
import 'package:sprinkle_architecture_exp/constants/route_paths.dart';
import 'package:sprinkle_architecture_exp/views/counter_page.dart';
abstract class RoutePages {
static final List<GetPage<dynamic>> pages = <GetPage<dynamic>>[
GetPage<void>(
name: RoutePaths.counterPage,
page: () => const CounterPage(title: 'Flutter Demo Home Page'),
binding: CounterPageBindings(),
),
];
}
class CounterPageBindings extends Bindings {
@override
void dependencies() => Get.lazyPut<CounterManager>(() => CounterManager());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment