Created
November 18, 2019 16:04
-
-
Save dafinoer/6bd57a87ec1b78b36ef4ecd98be15709 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bagidua/screens/food/detail_food_page.dart'; | |
import 'package:bagidua/screens/home_page.dart'; | |
import 'package:bagidua/screens/order/order_page.dart'; | |
import 'package:fluro/fluro.dart'; | |
import 'package:flutter/material.dart'; | |
class RoutesHandler { | |
static dynamic homeHandler() { | |
return Handler( | |
handlerFunc: (BuildContext context, Map<String, dynamic> params) => | |
HomePage()); | |
} | |
static dynamic orderHandler(){ | |
return Handler( | |
handlerFunc: (_, Map<String, dynamic> params) => OrderPage() | |
); | |
} | |
static dynamic detailFoodHandler() { | |
return Handler( | |
handlerFunc: (BuildContext context, Map<String, dynamic> params) => | |
DetailFoodPage()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment