-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on new Flutter #31
Comments
I need to reproduce this. |
Beta Channel Latest : 1.21.0-9.1.pre |
I see. I'm working right now. Will check this later. |
Thanks @xamantra |
I found the errors and was able to fix them fine. They're just import conflicts so I just use Thanks for reporting the issue @Bilonik. I really appreciated it. I don't know when I can publish version dependencies:
# other packages ...
momentum:
git:
url: https://github.com/xamantra/momentum.git
ref: dev-1.3.2
# other packages ... |
@xamantra
anyway to fix this without using a bunch of |
You can try the import 'package:flutter/material.dart' hide Router;
// or any import hide Router; But I probably need to rename the |
thanks for the quick response, a rename to |
I renamed the class into dependencies:
# other packages ...
momentum:
git:
url: https://github.com/xamantra/momentum.git
ref: 915a90cb64ec6175e3a3c65879056d186599f1ec
# other packages ... This is a GitHub repo link but there shouldn't be any problems with future commits since it's referencing a specific commit not the branch itself. |
When are you releasing the next version with these changes. Now need a stable version to use, than the github repo |
Just realized I'm doing the readme rewrite on a different file so merging this on master will be fine. I'll try to release this today. |
commit 79ea7c6 Author: xamantra <[email protected]> Date: Sun Jan 24 04:09:07 2021 +0800 firebase core setup commit c2cdebc Author: xamantra <[email protected]> Date: Sun Jan 24 04:08:15 2021 +0800 .gitignore: google-services.json commit a1fa57b Author: xamantra <[email protected]> Date: Mon Jan 11 21:26:07 2021 +0800 rest api example commit 0d6dc78 Author: xamantra <[email protected]> Date: Mon Jan 11 20:40:46 2021 +0800 timer example commit 0de1e53 Author: xamantra <[email protected]> Date: Mon Jan 11 20:07:03 2021 +0800 created example app boilerplate commit d15ea3f Author: xamantra <[email protected]> Date: Sun Jan 10 06:35:17 2021 +0800 deprecated some apis and added docs commit c1137d0 Author: xamantra <[email protected]> Date: Sat Jan 9 11:38:32 2021 +0800 updated readme rewrite commit be8728b Author: xamantra <[email protected]> Date: Sat Jan 9 09:59:59 2021 +0800 Restored `Router` class but marked as deprecated #31 commit 915a90c Author: xamantra <[email protected]> Date: Fri Jan 8 09:02:33 2021 +0800 fixed code coverage commit cab9c7e Author: xamantra <[email protected]> Date: Fri Jan 8 08:55:42 2021 +0800 subosito/[email protected] commit 3216fc5 Author: xamantra <[email protected]> Date: Fri Jan 8 08:51:02 2021 +0800 updated dev ci to dev-1.3.3 commit a3b941a Author: xamantra <[email protected]> Date: Fri Jan 8 08:41:21 2021 +0800 Renamed `Router` class to `MomentumRouter` #31 commit 5b4d1f6 Author: xamantra <[email protected]> Date: Fri Jan 8 06:50:46 2021 +0800 Modified some docs.
version 1.3.3 is now available on pub.dev |
momentum-1.3.1/lib/src/momentum_base.dart:99:18: Error: 'Router' is imported from both 'package:flutter/src/widgets/router.dart' and 'package:momentum/src/momentum_router.dart'.
var result = Router.getParam(_mRootContext);
momentum_base.dart:6:1: Error: 'Router' is imported from both 'package:flutter/src/widgets/router.dart' and 'package:momentum/src/momentum_router.dart'.
import '../momentum.dart';
The text was updated successfully, but these errors were encountered: