Skip to content

reactive_awesome_select error #203

@indramal

Description

@indramal

I got below error when check example code of reactive_awesome_select in this repo.

ERROR: ../../../.pub-cache/hosted/pub.dev/flutter_awesome_select-6.5.0/lib/src/widget/s2_state.dart:143:31: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.
ERROR:  - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/bin/flutter/packages/flutter/lib/src/material/text_theme.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline6'.
ERROR:             ? theme.textTheme.headline6
ERROR:                               ^^^^^^^^^
ERROR: ../../../.pub-cache/hosted/pub.dev/flutter_awesome_select-6.5.0/lib/src/widget/s2_state.dart:144:38: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.
ERROR:  - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/bin/flutter/packages/flutter/lib/src/material/text_theme.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline6'.
ERROR:             : theme.primaryTextTheme.headline6,
ERROR:                                      ^^^^^^^^^
ERROR: ../../../.pub-cache/hosted/pub.dev/flutter_awesome_select-6.5.0/lib/src/tile/tile.dart:216:52: Error: The getter 'errorColor' isn't defined for the class 'ThemeData'.
ERROR:  - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/usr/bin/flutter/packages/flutter/lib/src/material/theme_data.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'errorColor'.
ERROR:               ? TextStyle(color: Theme.of(context).errorColor)
ERROR:                                                    ^^^^^^^^^^
ERROR: Target kernel_snapshot_program failed: Exception

Flutter details:

reactive_forms: ^18.1.1
sdk: ^3.8.1
reactive_awesome_select: ^2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions