Comments (7)
Please feel free to reopen if you can provide a suitable example
from fluro.
If you provide a reproduction we can reopen this, thanks.
from fluro.
Can you provide a MCVE?
from fluro.
after disabling the notFoundHandler this behavior vanished
but with
`class Routes {
static const String Root = "/";
static const String MainScreen = "/MainScreen";
static const String Order = "/order";
static const String Home = '/HomeScreen';
static const String Category = '/CategoryScreen';
static const String Product = '/ProductScreen';
//Checkout Screens
static const String Cart = '/CartScreen';
static const String Checkout = '/CheckoutScreen';
// Customer Screens
static const String SignIn = '/SignInScreen';
static const String SignUp = '/SignUpScreen';
static const String AccountInfo = '/AccountInfoScreen';
static const String OrderList = '/OrderListScreen';
static const String OrderPayment = '/OrderPaymentScreen';
static const String OrderDetail = '/OrderDetailScreen';
static const String OrderPlaced = '/OrderPlacedScreen';
static const String WishList = '/WishListScreen';
static const String AddressList = '/AddressListScreen';
static const String EditAddress = '/EditAddressScreen';
static const String ReviewList = '/ReviewListScreen';
// General App Related Screens
static const String NotificationList = '/NotificationScreen';
static const String CurrencySetUp = '/CurrencySetupScreen';
static const String CmsDetails = '/CmsDetailsScreen';
static const String ContactUs = '/ContactUsScreen';
static const String LoginAndSignUp = '/LoginandSignUpScreen';
static const String SubCategory = '/SubCategoryScreen';
static const String Catalog = '/CatalogScreen';
static const String CatalogCustomCaraouselCollection =
'/CatalogCustomCaraouselCollection';
//Search Screen
static const String Search = '/SearchScreen';
//notification screen
static const String Notifications = '/NotificationScreen';
static void configureRoutes(FluroRouter router) {
router.notFoundHandler = Handler(
handlerFunc: (BuildContext? context, Map<String, List> params) {
print(params);
print("ROUTE WAS NOT FOUND !!!");
return;
});
router.define(Root, handler: rootHandler);
router.define(MainScreen, handler: homeHanlder);
router.define(Search, handler: searchHandler);
router.define(CurrencySetUp, handler: currencySetUp);
router.define(Order, handler: orderHandler);
router.define(Home, handler: homeHanlder);
router.define(Product, handler: productScreen);
router.define(Cart, handler: cartScreen);
router.define(Checkout, handler: checkOutScreen);
router.define(SignIn, handler: signInScreen);
router.define(SignUp, handler: signUpScreen);
router.define(AccountInfo, handler: accountInfoScreen);
router.define(AddressList, handler: addressListScreen);
router.define(EditAddress, handler: addEditAddressScreen);
router.define(NotificationList, handler: notificationScreen);
router.define(CmsDetails, handler: cmsDetailScreen);
router.define(ContactUs, handler: contactUsScreen);
router.define(LoginAndSignUp, handler: loginAndSignUpScreen);
router.define(SubCategory, handler: subCategoryScreen);
router.define(Catalog, handler: catalogScreen);
router.define(CatalogCustomCaraouselCollection,
handler: catalogScreenCustomCollection);
router.define(OrderPayment, handler: orderPaymentScreen);
router.define(OrderList, handler: orderListScreen);
}
}
`
inside main.dart
final router = FluroRouter(); Routes.configureRoutes(router); Application.router = router;
from fluro.
Can you please reduce this example to its key components and make sure it's properly formatted?
from fluro.
there is no need for any example
my question is that any dynamic link is considered as notFoundHandler(unknown route)
how to fix this situation
from fluro.
the issue is not resolved for me
an arbitrary closing for real issue @lukepighetti
from fluro.
Related Issues (20)
- Error after refresh page with appended argument. HOT 1
- Arguments is null when using HandlerType.function HOT 1
- All previous view loaded when direct access via url
- Reloaded web page 404 error
- optional params
- notFoundHanler == null
- remove hash from the url HOT 1
- A GlobalKey was used multiple times inside one widget's child list. HOT 1
- Expected a value of type 'Handler', but got one of type 'Null' HOT 1
- settingsToUse = settingsToUse.copyWith(name: path); HOT 2
- Flutter web: Refreshing dynamic route opens blank page HOT 1
- I found a very magical bug. When I use fluro to jump, the text element of the page will be copied as red and yellow borders. HOT 4
- Error: The argument type 'FluroRouter' can't be assigned to the parameter type 'Router<dynamic>' HOT 1
- Build error HOT 2
- BuildContext null for HandlerType.function HOT 1
- initialRoute with string like '/home/login' will cause not found error
- How to implement custom PageRoute
- Is it possible to use the animations packageh
- reboot app? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluro.