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

Run error #39

Open
tim0991 opened this issue Oct 29, 2021 · 1 comment
Open

Run error #39

tim0991 opened this issue Oct 29, 2021 · 1 comment

Comments

@tim0991
Copy link

tim0991 commented Oct 29, 2021

Flutter version 1.17.5

image

Compiler message:
lib/app/root_scene.dart:85:56: Error: No named parameter with the name 'label'.
          BottomNavigationBarItem(icon: getTabIcon(0), label: '书架'),
                                                       ^^^^^
/usr/local/flutter/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart:25:9: Context: Found this candidate, but the arguments don't match.
  const BottomNavigationBarItem({
        ^^^^^^^^^^^^^^^^^^^^^^^
lib/app/root_scene.dart:86:56: Error: No named parameter with the name 'label'.
          BottomNavigationBarItem(icon: getTabIcon(1), label: '书城'),
                                                       ^^^^^
/usr/local/flutter/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart:25:9: Context: Found this candidate, but the arguments don't match.
  const BottomNavigationBarItem({
        ^^^^^^^^^^^^^^^^^^^^^^^
lib/app/root_scene.dart:87:56: Error: No named parameter with the name 'label'.
          BottomNavigationBarItem(icon: getTabIcon(2), label: '我的'),
                                                       ^^^^^
/usr/local/flutter/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart:25:9: Context: Found this candidate, but the arguments don't match.
  const BottomNavigationBarItem({
        ^^^^^^^^^^^^^^^^^^^^^^^
lib/home/home_scene.dart:20:11: Error: No named parameter with the name 'systemOverlayStyle'.
          systemOverlayStyle: SystemUiOverlayStyle.dark,
          ^^^^^^^^^^^^^^^^^^
/usr/local/flutter/packages/flutter/lib/src/material/app_bar.dart:179:3: Context: Found this candidate, but the arguments don't match.
  AppBar({
  ^^^^^^
lib/me/login_scene.dart:142:24: Error: The method 'TextButton' isn't defined for the class 'LoginSceneState'.
 - 'LoginSceneState' is from 'package:shuqi/me/login_scene.dart' ('lib/me/login_scene.dart').
Try correcting the name to the name of an existing method, or defining a method named 'TextButton'.
                child: TextButton(
                       ^^^^^^^^^^
lib/reader/reader_scene.dart:56:18: Error: Method not found: 'SystemChrome.setEnabledSystemUIMode'.
    SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
                 ^^^^^^^^^^^^^^^^^^^^^^
lib/reader/reader_scene.dart:67:24: Error: Method not found: 'SystemChrome.setEnabledSystemUIMode'.
    await SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
                       ^^^^^^^^^^^^^^^^^^^^^^
lib/reader/reader_scene.dart:167:20: Error: Method not found: 'SystemChrome.setEnabledSystemUIMode'.
      SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
                   ^^^^^^^^^^^^^^^^^^^^^^
lib/reader/reader_scene.dart:262:18: Error: Method not found: 'SystemChrome.setEnabledSystemUIMode'.
    SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
                 ^^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.
@tim0991 tim0991 changed the title Build error Run error Oct 29, 2021
@yourkiwifruit
Copy link

You can try to use the sdk after flutter2.0.0, as the dart version of flutter1.17.5 is low and may have problems starting. See the pubspec.yaml file in the project for details.

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