Coder Social home page Coder Social logo

Comments (7)

lukepighetti avatar lukepighetti commented on May 18, 2024 1

Please feel free to reopen if you can provide a suitable example

from fluro.

lukepighetti avatar lukepighetti commented on May 18, 2024 1

If you provide a reproduction we can reopen this, thanks.

from fluro.

lukepighetti avatar lukepighetti commented on May 18, 2024

Can you provide a MCVE?

from fluro.

mohadel92 avatar mohadel92 commented on May 18, 2024

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.

lukepighetti avatar lukepighetti commented on May 18, 2024

Can you please reduce this example to its key components and make sure it's properly formatted?

from fluro.

mohadel92 avatar mohadel92 commented on May 18, 2024

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.

mohadel92 avatar mohadel92 commented on May 18, 2024

the issue is not resolved for me
an arbitrary closing for real issue @lukepighetti

from fluro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.