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

style: Theme.of(context).textTheme.subtitle2, #24

Open
lucasjinreal opened this issue Mar 14, 2020 · 1 comment
Open

style: Theme.of(context).textTheme.subtitle2, #24

lucasjinreal opened this issue Mar 14, 2020 · 1 comment

Comments

@lucasjinreal
Copy link

        headline4:
        ^^^^^^^^^

/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart:109:9: Context: Found this candidate, but the arguments don't match.
const TextTheme({
^^^^^^^^^
lib/main.dart:79:52: Error: The getter 'headline4' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline4'.
    style: Theme.of(context).textTheme.headline4,
    ^^^^^^^^^
    lib/screens/login.dart:99:32: Error: The getter 'headline4' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline4'.
    .headline4
    ^^^^^^^^^
    lib/screens/login.dart:143:70: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
    style: Theme.of(context).textTheme.bodyText2,
    ^^^^^^^^^
    lib/screens/register.dart:84:32: Error: The getter 'headline4' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline4'.
    .headline4
    ^^^^^^^^^
    lib/screens/settings.dart:24:52: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline6'.
    style: Theme.of(context).textTheme.headline6,
    ^^^^^^^^^
    lib/screens/welcome.dart:45:32: Error: The getter 'headline3' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline3'.
    .headline3
    ^^^^^^^^^
    lib/screens/welcome.dart:52:32: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    lib/create.form.dart:126:48: Error: The getter 'headline4' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline4'.
    style: Theme.of(context).textTheme.headline4,
    ^^^^^^^^^
    lib/create.form.dart:269:11: Error: No named parameter with the name 'visualDensity'.
    visualDensity: VisualDensity.comfortable,
    ^^^^^^^^^^^^^
    /E:/apps/flutter/packages/flutter/lib/src/material/icon_button.dart:138:9: Context: Found this candidate, but the
    arguments don't match.
    const IconButton({
    ^^^^^^^^^^
    lib/screens/forgot_pass.dart:51:62: Error: The getter 'headline4' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline4'.
    style: Theme.of(context).textTheme.headline4),
    ^^^^^^^^^
    lib/screens/forgot_pass.dart:55:60: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
    style: Theme.of(context).textTheme.bodyText2,
    ^^^^^^^^^
    lib/screens/forgot_pass.dart:80:60: Error: The getter 'headline5' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline5'.
    style: Theme.of(context).textTheme.headline5),
    ^^^^^^^^^
    lib/screens/forgot_pass.dart:83:60: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
    style: Theme.of(context).textTheme.subtitle1),
    ^^^^^^^^^
    lib/screens/forgot_pass.dart:86:60: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
    style: Theme.of(context).textTheme.subtitle1),
    ^^^^^^^^^
    lib/widgets/tabsInfoHeader.dart:76:50: Error: The getter 'headline3' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline3'.
    style: Theme.of(context).textTheme.headline3),
    ^^^^^^^^^
    lib/widgets/tabCard.dart:42:52: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
    style: Theme.of(context).textTheme.subtitle1,
    ^^^^^^^^^
    lib/widgets/tabCard.dart:48:22: Error: The getter 'headline5' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline5'.
    .headline5
    ^^^^^^^^^
    lib/widgets/tabCard.dart:80:60: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
    style: Theme.of(context).textTheme.bodyText2,
    ^^^^^^^^^
    lib/widgets/tabModal.dart:44:22: Error: The getter 'headline5' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline5'.
    lib/widgets/tabModal.dart:71:54: Error: The getter 'subtitle2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle2'.
    style: Theme.of(context).textTheme.subtitle2,
    ^^^^^^^^^
    lib/widgets/tabModal.dart:75:54: Error: The getter 'subtitle2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/apps/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle2'.
    style: Theme.of(context).textTheme.subtitle2,
    ^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script 'E:\apps\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'E:\apps\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

@tamsir
Copy link

tamsir commented Mar 25, 2020

Someone have a solution?

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