caduandrade / tabbed_view

Widget inspired by the classic Desktop-style tab component.
MIT License
49 stars 16 forks source link

Error: 'MenuThemeData' is imported from both 'package:flutter/src/material/menu_theme.dart' and 'package:tabbed_view/src/theme/menu_theme_data.dart' #15

Closed ghost closed 1 year ago

ghost commented 1 year ago

If we were using the Flutter version 3.4.0-36.0.pre.5 on channel master and it caused the build error below :

""flutter-build": Error: 'MenuThemeData' is imported from both 'package:flutter/src/material/menu_theme.dart' and 'package:tabbed_view/src/theme/menu_theme_data.dart'."

So we revert back the flutter version to stable (Flutter 3.3.3 • channel stable • https://github.com/flutter/flutter.git) , then it's working without any issues.

So the issue is once the new code get merged into the stable version we will face the same issue again with tabbed_view ?

caduandrade commented 1 year ago

Hi @avmakesh ! I will take a look.

caduandrade commented 1 year ago

The name 'MenuThemeData' is defined in the libraries 'package:flutter/src/material/menu_theme.dart (via package:flutter/material.dart)' and 'package:tabbed_view/src/theme/menu_theme_data.dart (via package:tabbed_view/tabbed_view.dart)'.

The new Flutter version also has a class with the same name.

caduandrade commented 1 year ago

To avoid conflict and having to import using "as", I'm going to rename MenuThemeData to TabbedViewMenuThemeData.

ghost commented 1 year ago

To avoid conflict and having to import using "as", I'm going to rename MenuThemeData to TabbedViewMenuThemeData.

When we can expect the new version ?

caduandrade commented 1 year ago

When we can expect the new version ?

In the next 122 seconds. :smile:

caduandrade commented 1 year ago

@avmakesh, done. Version 1.14.0. If you have another problem, let me know.

ghost commented 1 year ago

Sure, Thank you.