From 00875ed1fae5268a4161a192ce14c3a9be9ea62e Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 14 Jun 2021 20:15:42 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20create=20constructor=20with=20rigth=20pa?= =?UTF-8?q?rams=CE=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/lib/app/search/presenter/pages/guardt.dart | 3 +++ .../example/linux/flutter/generated_plugin_registrant.cc | 2 ++ .../example/linux/flutter/generated_plugin_registrant.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/flutter_modular/example/lib/app/search/presenter/pages/guardt.dart b/flutter_modular/example/lib/app/search/presenter/pages/guardt.dart index 69c7d6b1..33c5182f 100644 --- a/flutter_modular/example/lib/app/search/presenter/pages/guardt.dart +++ b/flutter_modular/example/lib/app/search/presenter/pages/guardt.dart @@ -1,6 +1,9 @@ import 'package:flutter_modular/flutter_modular.dart'; class GuardT extends RouteGuard { + String? guardedRoute; + GuardT({this.guardedRoute}) : super(guardedRoute); + @override Future canActivate(String path, ModularRoute router) async { print(Modular.args); diff --git a/flutter_modular/example/linux/flutter/generated_plugin_registrant.cc b/flutter_modular/example/linux/flutter/generated_plugin_registrant.cc index d38195aa..e71a16d2 100644 --- a/flutter_modular/example/linux/flutter/generated_plugin_registrant.cc +++ b/flutter_modular/example/linux/flutter/generated_plugin_registrant.cc @@ -2,6 +2,8 @@ // Generated file. Do not edit. // +// clang-format off + #include "generated_plugin_registrant.h" diff --git a/flutter_modular/example/linux/flutter/generated_plugin_registrant.h b/flutter_modular/example/linux/flutter/generated_plugin_registrant.h index 9bf74789..e0f0a47b 100644 --- a/flutter_modular/example/linux/flutter/generated_plugin_registrant.h +++ b/flutter_modular/example/linux/flutter/generated_plugin_registrant.h @@ -2,6 +2,8 @@ // Generated file. Do not edit. // +// clang-format off + #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_