Skip to content
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

Rename NavigationRail #7

Closed
Zazo032 opened this issue Mar 27, 2020 · 1 comment
Closed

Rename NavigationRail #7

Zazo032 opened this issue Mar 27, 2020 · 1 comment

Comments

@Zazo032
Copy link

Zazo032 commented Mar 27, 2020

Now that Flutter's material library has a component named NavigationRail, on latest master's channel, when importing both this library and material, this error is thrown:

error: The name 'NavigationRail' is defined in the libraries 'package:flutter/src/material/navigation_rail.dart (via package:flutter/material.dart)' and 'package:navigation_rail/navigation_rail.dart'. (ambiguous_import at [<elided>])

The workaround to make this compatible is changing material's import like this:

import 'package:flutter/material.dart' hide NavigationRail;

The easiest (but breaking) way to solve this is to rename NavigationRail or warn about what you should do in order to import both this plugin and material.

@rodydavis
Copy link
Owner

Yep that’s what I was planning! Thank you 💪🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants