Skip to content

The getter 'button' isn't defined for the class 'TextTheme'. #40

Description

@sujianchuan888

/C:/Users/h/AppData/Local/Pub/Cache/hosted/pub.dev/flukit-3.0.1/lib/src/gradient_button.dart:63:44: Error: The getter 'button' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/dev/flutter_windows_3.19.5-stable/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 'button'.
    style: theme.textTheme.button!.copyWith(

Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (9 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision f6344b75dc
Tools • Dart 3.4.0 • DevTools 2.34.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions