Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

problem with auto_route package after upgrading flutter to 1.22.0

There is a Type to be associated with the builder constructor now.

try this,

import 'auto_route/auto_route.dart';
import 'router.gr.dart' as r;


  return MaterialApp(
   builder: ExtendedNavigator.builder<r.Router>(router: r.Router()),
   ...
  );

I faced issues that Router was defined in multiple files so use an alias while importing if you face such an issue like above.

Tags:

Dart

Flutter

Related

problem with vertical spacing with css grid ImportError: cannot import name 'Command' from 'celery.bin.base' How does sequenceA work on lists of pairs? How to add new colors to tailwind-css and keep the original ones? Failed to ugrade a Spring Boot app to Flyway 7.0.0 XCode 12, FIRAnalyticsConnector, Build Error Why eslint consider JSX or some react @types undefined, since upgrade typescript-eslint/parser to version 4.0.0 Numpy finding interval which has a least k points Change in Form UI in iOS 14 for SwiftUI woocommerce widget "filter products by attribute" displays unavailable products C#: how to detect repeating values in an array and process them in such a way that each repeating value is only processed once? Regular expression to find a sequence of numbers before multiple patterns, into a new column (Python, Pandas)

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy