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

Flutter Gallery Project can't be build any longer #22467

Closed
vivek0103 opened this issue Sep 29, 2018 · 16 comments

Comments

@vivek0103
Copy link

@vivek0103 vivek0103 commented Sep 29, 2018

cupertino_picker_demo.dart results in bulid Error.

2a8e35c

The latest fix checked in breaks the build with following error.

Compiler message:

file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:168:23: Error: Getter not found: 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.date,
                      ^^^^^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:167:15: Error: Method not found: 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:167:15: Error: The method 'CupertinoDatePicker' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing method, or defining a method named 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:168:23: Error: The getter 'CupertinoDatePickerMode' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.date,
                      ^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:198:23: Error: Getter not found: 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.time,
                      ^^^^^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:197:15: Error: Method not found: 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:197:15: Error: The method 'CupertinoDatePicker' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing method, or defining a method named 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:198:23: Error: The getter 'CupertinoDatePickerMode' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.time,
                      ^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:228:23: Error: Getter not found: 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.dateAndTime,
                      ^^^^^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:227:15: Error: Method not found: 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^^^^^^^^^^^^^^^^^^^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:227:15: Error: The method 'CupertinoDatePicker' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing method, or defining a method named 'CupertinoDatePicker'.
              CupertinoDatePicker(
              ^
file:///d:/Repos/flutter/examples/flutter_gallery/lib/demo/cupertino/cupertino_picker_demo.dart:228:23: Error: The getter 'CupertinoDatePickerMode' isn't defined for the class '#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoDatePickerMode'.
                mode: CupertinoDatePickerMode.dateAndTime,
                      ^
Compiler failed on d:\Repos\flutter\examples\flutter_gallery\lib/main.dart
Gradle task 'assembleDebug'... Done                         10.1s
Gradle task assembleDebug failed with exit code 1
@xster

This comment has been minimized.

Copy link
Contributor

@xster xster commented Oct 2, 2018

I'm assuming you're on the master channel and manually running git fetch/pull to update your Flutter repo? Try flutter clean and flutter run again?

@zoechi

This comment has been minimized.

Copy link
Contributor

@zoechi zoechi commented Nov 30, 2018

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@zoechi zoechi closed this Nov 30, 2018
@alexleeelkins

This comment has been minimized.

Copy link

@alexleeelkins alexleeelkins commented Dec 20, 2018

@zoechi having issues with this myself, now. what information do you need?

~/D/A/flutter.nosync    examples/flutter_gallery  flutter run                                       849ms  085249 Thu 181220
Launching lib/main.dart on iPhone Xʀ in debug mode...

Compiler message:
lib/gallery/app.dart:145:21: Error: Method not found: 'CupertinoThemeData'.
              data: CupertinoThemeData(
                    ^^^^^^^^^^^^^^^^^^
lib/gallery/app.dart:144:13: Error: Method not found: 'CupertinoTheme'.
            CupertinoTheme(
            ^^^^^^^^^^^^^^
lib/gallery/app.dart:144:13: Error: The method 'CupertinoTheme' isn't defined for the class '#lib1::_GalleryAppState'.
Try correcting the name to the name of an existing method, or defining a method named 'CupertinoTheme'.
            CupertinoTheme(
            ^^^^^^^^^^^^^^
lib/gallery/app.dart:145:21: Error: The method 'CupertinoThemeData' isn't defined for the class '#lib1::_GalleryAppState'.
Try correcting the name to the name of an existing method, or defining a method named 'CupertinoThemeData'.
              data: CupertinoThemeData(
                    ^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:53:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:62:35: Error: Method not found: 'CupertinoButton.filled'.
                  CupertinoButton.filled(
                                  ^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:90:35: Error: Method not found: 'CupertinoButton.filled'.
                  CupertinoButton.filled(
                                  ^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:119:35: Error: Method not found: 'CupertinoButton.filled'.
                  CupertinoButton.filled(
                                  ^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:135:35: Error: Method not found: 'CupertinoButton.filled'.
                  CupertinoButton.filled(
                                  ^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:146:35: Error: Method not found: 'CupertinoButton.filled'.
                  CupertinoButton.filled(
                                  ^^^^^^
lib/demo/cupertino/cupertino_alert_demo.dart:53:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoAlertDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_buttons_demo.dart:31:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_buttons_demo.dart:69:37: Error: Method not found: 'CupertinoButton.filled'.
                    CupertinoButton.filled(
                                    ^^^^^^
lib/demo/cupertino/cupertino_buttons_demo.dart:76:43: Error: Method not found: 'CupertinoButton.filled'.
                    const CupertinoButton.filled(
                                          ^^^^^^
lib/demo/cupertino/cupertino_buttons_demo.dart:31:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoButtonDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:55:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:55:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::CupertinoNavigationDemo'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:349:45: Error: Method not found: 'CupertinoButton.filled'.
                            CupertinoButton.filled(
                                            ^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:363:45: Error: Method not found: 'CupertinoButton.filled'.
                            CupertinoButton.filled(
                                            ^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:718:18: Error: Getter not found: 'CupertinoTheme'.
          color: CupertinoTheme.of(context).brightness == Brightness.light
                 ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:719:33: Error: Getter not found: 'extraLightBackgroundGray'.
              ? CupertinoColors.extraLightBackgroundGray
                                ^^^^^^^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:720:33: Error: Getter not found: 'darkBackgroundGray'.
              : CupertinoColors.darkBackgroundGray,
                                ^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:736:26: Error: Getter not found: 'CupertinoTheme'.
                  color: CupertinoTheme.of(context).scaffoldBackgroundColor,
                         ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:752:51: Error: Getter not found: 'CupertinoTheme'.
                          style: TextStyle(color: CupertinoTheme.of(context).primaryColor),
                                                  ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:718:18: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::CupertinoDemoTab3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
          color: CupertinoTheme.of(context).brightness == Brightness.light
                 ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:736:26: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::CupertinoDemoTab3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
                  color: CupertinoTheme.of(context).scaffoldBackgroundColor,
                         ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:752:51: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::CupertinoDemoTab3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
                          style: TextStyle(color: CupertinoTheme.of(context).primaryColor),
                                                  ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_navigation_demo.dart:790:29: Error: Method not found: 'CupertinoButton.filled'.
            CupertinoButton.filled(
                            ^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:37:16: Error: Getter not found: 'CupertinoTheme'.
        color: CupertinoTheme.of(context).scaffoldBackgroundColor,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:37:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        color: CupertinoTheme.of(context).scaffoldBackgroundColor,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:254:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:257:20: Error: Getter not found: 'CupertinoTheme'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                   ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:257:61: Error: Getter not found: 'Brightness'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                                                            ^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:258:35: Error: Getter not found: 'extraLightBackgroundGray'.
                ? CupertinoColors.extraLightBackgroundGray
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:259:35: Error: Getter not found: 'darkBackgroundGray'.
                : CupertinoColors.darkBackgroundGray,
                                  ^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:254:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:257:20: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                   ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_picker_demo.dart:257:61: Error: The getter 'Brightness' isn't defined for the class
'#lib1::_CupertinoPickerDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Brightness'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                                                            ^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:42:14: Error: Getter not found: 'CupertinoTheme'.
      style: CupertinoTheme.of(context).textTheme.textStyle,
             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:46:20: Error: Getter not found: 'CupertinoTheme'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                   ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:46:61: Error: Getter not found: 'Brightness'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                                                            ^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:47:35: Error: Getter not found: 'extraLightBackgroundGray'.
                ? CupertinoColors.extraLightBackgroundGray
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:48:35: Error: Getter not found: 'darkBackgroundGray'.
                : CupertinoColors.darkBackgroundGray,
                                  ^^^^^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:42:14: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoRefreshControlDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
      style: CupertinoTheme.of(context).textTheme.textStyle,
             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:46:20: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoRefreshControlDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                   ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:46:61: Error: The getter 'Brightness' isn't defined for the class
'#lib1::_CupertinoRefreshControlDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Brightness'.
            color: CupertinoTheme.of(context).brightness == Brightness.light
                                                            ^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:157:14: Error: Getter not found: 'CupertinoTheme'.
      color: CupertinoTheme.of(context).scaffoldBackgroundColor,
             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:224:30: Error: Getter not found: 'CupertinoTheme'.
                      color: CupertinoTheme.of(context).primaryColor,
                             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:157:14: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_ListItem'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
      color: CupertinoTheme.of(context).scaffoldBackgroundColor,
             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_refresh_demo.dart:224:30: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_ListItem'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
                      color: CupertinoTheme.of(context).primaryColor,
                             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_segmented_control_demo.dart:63:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_segmented_control_demo.dart:94:30: Error: Getter not found: 'CupertinoTheme'.
                      color: CupertinoTheme.of(context).scaffoldBackgroundColor,
                             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_segmented_control_demo.dart:63:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoSegmentedControlDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_segmented_control_demo.dart:94:30: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoSegmentedControlDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
                      color: CupertinoTheme.of(context).scaffoldBackgroundColor,
                             ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_slider_demo.dart:32:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_slider_demo.dart:32:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoSliderDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_switch_demo.dart:32:16: Error: Getter not found: 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
lib/demo/cupertino/cupertino_switch_demo.dart:32:16: Error: The getter 'CupertinoTheme' isn't defined for the class
'#lib1::_CupertinoSwitchDemoState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CupertinoTheme'.
        style: CupertinoTheme.of(context).textTheme.textStyle,
               ^^^^^^^^^^^^^^
Compiler failed on /Users/alex/Documents/AlexElkins.xyz/flutter.nosync/examples/flutter_gallery/lib/main.dart
Error launching application on iPhone Xʀ.
@zoechi

This comment has been minimized.

Copy link
Contributor

@zoechi zoechi commented Dec 20, 2018

Looks like you are using master channel where Gallery code is using Flutter code that is not merged yet.
@xster Seems you committed CupertionTheme yesterday.
#23759
You might know more.

@zoechi

This comment has been minimized.

Copy link
Contributor

@zoechi zoechi commented Dec 20, 2018

what information do you need?

at least the output of flutter doctor -v

@jinfagang

This comment has been minimized.

Copy link

@jinfagang jinfagang commented Dec 20, 2018

@zoechi OK, I just pulled the fresh master codes....... and runs into this error............ Isn't flutter release a stable version? Why still so big API changes

@zoechi

This comment has been minimized.

Copy link
Contributor

@zoechi zoechi commented Dec 20, 2018

stable is stable, master is not ;-)

@no-response no-response bot closed this Dec 20, 2018
@zoechi zoechi reopened this Dec 20, 2018
@flutter flutter deleted a comment from no-response bot Dec 20, 2018
@zoechi zoechi added the ⚠ TODAY label Dec 20, 2018
@cbracken

This comment has been minimized.

Copy link
Member

@cbracken cbracken commented Dec 20, 2018

@jinfagang specifically, to switch to stable type flutter channel stable.

@mklim

This comment has been minimized.

Copy link
Member

@mklim mklim commented Dec 20, 2018

It looks like #23759 was reverted by 630b8d8 yesterday around 9AM -0800. @jinfagang based on the timing it sounds like you're probably still seeing the error even with the revert, but could you confirm that you're seeing problems even including 630b8d8? @alexleeelkins it would be great if you could double check and see if you're still seeing this with the latest commits too.

/cc @liyuqian

@liyuqian

This comment has been minimized.

Copy link
Contributor

@liyuqian liyuqian commented Dec 20, 2018

@mklim : I'm sorry for the confusion but 630b8d8 is actually not merged into our tree. It was automatically generated by a Github revert PR when I try to revert something else. I then closed that revert PR (#25562) and created my own manual revert PR (#25563). In short, #23759 is not reverted.

@mklim

This comment has been minimized.

Copy link
Member

@mklim mklim commented Dec 20, 2018

Oh, my mistake. I should have actually double checked the diff too. Thanks @liyuqian.

@alexleeelkins and @jinfagang disregard what I said in #22467 (comment) for now, the likely issue hasn't been reverted yet.

@xster

This comment has been minimized.

Copy link
Contributor

@xster xster commented Dec 20, 2018

@alexleeelkins @jinfagang can either of you describe a bit more how we can reproduce this issue?

Are your flutter_gallery and the flutter framework itself both from the same git repo?

@mklim

This comment has been minimized.

Copy link
Member

@mklim mklim commented Dec 20, 2018

I have reproduced this now, but only by using a stable channel flutter binary to try and run a master version of flutter_gallery. I don't think running a different version fluttery binary on the examples is supported because the version mismatch can lead to bugs like this.

Warning: the 'flutter' tool you are currently running is not the one from the current directory:
  running Flutter  : ~/Downloads/flutter
  current directory: ~/flutter
This can happen when you have multiple copies of flutter installed. Please check your system path to verify that you're running the expected version (run 'flutter --version' to see which flutter is on your path).


Launching lib/main.dart on iPhone 5s in debug mode...
Running pod install...                                       1.0s
Starting Xcode build...
 ├─Assembling Flutter resources...                    1.4s

 └─Compiling, linking and signing...                  2.2s

Xcode build done.                                            4.9s
 3.1s
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following _CompileTimeError was thrown building Builder(dirty):
flutter: 'package:flutter_gallery/gallery/app.dart': error: line 144 pos 13: lib/gallery/app.dart:144:13:
flutter: Error: The method 'CupertinoTheme' isn't defined for the class '#lib1::_GalleryAppState'.
flutter: Try correcting the name to the name of an existing method, or defining a method named
flutter: 'CupertinoTheme'.
flutter:             CupertinoTheme(
flutter:             ^^^^^^^^^^^^^^
flutter:             CupertinoTheme(
flutter:             ^
@xster

This comment has been minimized.

Copy link
Contributor

@xster xster commented Dec 20, 2018

Removing the today tag since it's not reproducible in common usages.

@jeffersonatsafe

This comment has been minimized.

Copy link

@jeffersonatsafe jeffersonatsafe commented Jan 4, 2019

I ran into this issue as well, but I've since resolved it (and have learned something new!)

This happened (in my case) because I cloned flutter (which defaulted to master branch), while my flutter installation was still in beta channel (I was unaware of flutter's four channels)

after learning about the existence of channels, this was fixed by a simple git checkout origin/beta in my local flutter repo.
(or, if you're more adventurous, switching your flutter channel to master will also fix this)
basically, as implied by @mklim, you'd want your flutter branch to match your flutter channel

@zoechi

This comment has been minimized.

Copy link
Contributor

@zoechi zoechi commented Jan 25, 2019

Duplicate of #25220

@zoechi zoechi marked this as a duplicate of #25220 Jan 25, 2019
@zoechi zoechi closed this Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.