Hi π, I'm Ishanga Vidusha
-
π― Iβm looking to collaborate on Flutter
-
π¬ Ask me about Flutter, Dart, Python
-
π« How to reach me [email protected]
-
β‘ Fun fact => First, solve the problem. Then, write the code.
π― Iβm looking to collaborate on Flutter
π¬ Ask me about Flutter, Dart, Python
π« How to reach me [email protected]
β‘ Fun fact => First, solve the problem. Then, write the code.
Hi, Thank you for this great article, I really loved the way you handled routing and I implemented it in my app, The problem is I'm not sure how to use it without context in a notification service, I have tried this way below, there's no errors but the routing is not working.
class AppRouter {
late final AppService appService;
GoRouter get router => _goRouter;
AppRouter(this.appService);
late final GoRouter _goRouter = GoRouter(
refreshListenable: appService,
initialLocation: APPPAGE.home.toPath,
routes: <RouteBase>[
GoRoute(
and from the notification service I call it:
static void _navigateToeRoute(RemoteMessage event) async {
SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
AppService appService = AppService(sharedPreferences);
AppRouter appRouter = AppRouter(appService);
appRouter.router.goNamed(
APPPAGE.notification.toName,
pathParameters: <String, String>{'link': event.data['link']},
);
As I said there's no errors, but not routing!!
any help would be appreciated.
I get this error
Error: The class 'NavigatorObserver' can't be used as a mixin because it isn't a mixin class nor a mixin.
go_router.dart:17
class GoRouter extends ChangeNotifier with NavigatorObserver {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.